Link to home
Start Free TrialLog in
Avatar of SAIMSKY ADMIN
SAIMSKY ADMINFlag for Spain

asked on

How to get list of all thumb print - certificates installed on all servers.

I want to get list of all certificates installed on all of my servers.

Power shell script

Please advise
Avatar of Philip Portnoy
Philip Portnoy
Flag of United States of America image

Get-ChildItem -Recurse Cert:
Avatar of HAJ2014
HAJ2014

Avatar of becraig
If you have a list of servers and winrm configured this would work in a pinch:

gc c:\serverlist.txt | % {invoke-command -computername $_ -scriptblock {$hname = hostname; gci -recurse cert:\ | % {write-host $hanem $_.thumbprint $_.subject}}}

Open in new window

Avatar of SAIMSKY ADMIN

ASKER

Becraig  Many thanks, Can you please  set script to export the results in csv file with server name , thumbprint ,etc.

many thanks
Becraig, Please advise as I am getting this error for most of my servers when I run the above script.

Connecting to remote server SRV-S1158 failed with the following error message : The client cannot connect to the destination specified in the request. Verify that
the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM.
If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the
about_Remote_Troubleshooting Help topic.


Can you please also set somthing good , so I can get some good looking report.

Many thanks
Actually , I am looking for complete script in which i will extract all certificates /thumbprints according to servers name amd than I have to verfiy if these 3 thumprints avialable or not.

4822824ece7ed1450c039aa077dc1f8ae3489bbf
c6796490cdeeaab31aed798752ecd003e6866cb2
d2dbf71823b2b8e78f5958096150bfcb97cc388a


many thanks
ASKER CERTIFIED SOLUTION
Avatar of becraig
becraig
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wonderful and thanx