Hi all -
I'm really new to powershell and working through things.
So I need to get the thumbnail of a cert from a large list of servers and save it in variable, and then use it in the script later on.
I have tried this:
$thumb = Invoke-command -ComputerName $computername -Credential $cred -ScriptBlock { Get-ChildItem -Path Cert:\LocalMachine\My | select Thumbprint}
But it returns (values blanked out):
@{Thumbprint=********; PSComputerName=*********; RunspaceId=0324bba2-0bd9-4ae9
@{Thumbprint=********; PSComputerName=*********; RunspaceId=0324bba2-0bd9-4ae9
-8756-cfa63c9c04a9; PSShowComputerName=True}
I have to be missing something, is there a way to just get the value of the thumbnail into the variable?
Thanks in advance for any help!