您的位置:首页 > 运维架构 > Shell

Powershell How to get the Certificate thumbprint data

2017-09-13 11:08 453 查看
Today, I'm trying to get the thumbprint data by using powerhsell command, after a long search found it's the useful command to get it.

command should be:

Get-ChildItem -path Cert:\LocalMachine\my

PS C:\script\DSC1\mod3> Get-ChildItem -path Cert:\LocalMachine\my

Directory: Microsoft.PowerShell.Security\Certificate::LocalMachine\my

Thumbprint Subject
---------- -------
F053279CD91492B45AF16C6E34953C069DA231F9 CN=abc-12R2-DC-CA, DC=abc, DC=com
C56F6AA4BCF04764BB6CDB0A6FD55B17E486CE68 CN=abc company, OU=abc, O=abc, L=beijing, S=beijing, C=CN
9F376EC8425F190AD762D1BB5B7FCBCF72A08F5F CN=WMSvc-12R2-DC
882871BA1433E827D8788203D384436B8F587EFB CN=12R2-DC.abc.com
4DEAFE147C8542B1D02563FE959AE0C8DC598724 CN=PowerShellWebAccessTestWebSite
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Basic Command Powershel