Tuesday, December 07, 2010

Powershell: Find certificate by thumbprint

cd cert:
dir -recurse | where {$_.Thumbprint -eq "84e2c011ad0c1b3f6d32f651069bba184c426158"} | Format-List -property *

3 comments:

ErrorTM said...

Worked like a charm, thanks.

Bart van den Donk said...

Get-ChildItem -path cert:\LocalMachine\My | where {$_.Thumbprint -eq "84e2c011ad0c1b3f6d32f651069bba184c426158"}

Pekko said...

Thanks Bart, your script works & is simpler! :)