Powershell:对证书存储的访问返回一个空的EnhancedKeyUsageList

时间:2018-01-29 14:02:47

标签: windows powershell powershell-v3.0

当我在Windows 7 32bit(PS 3.0版)上运行以下脚本行时,我得到一个空的EnhancedKeyUsageList(我只看到空的大括号{})。

在使用PS 5.x的Windows 10计算机上,我得到了正确的结果。

我做错了什么?

Get-ChildItem -Path  Cert:\LocalMachine\My | Format-List -Property *

1 个答案:

答案 0 :(得分:0)

如果查询,则将EnhancedKeyUsage设置为ALL的证书将为空。通过MMC打开证书存储区,并检查您获得EKU的证书是否为空。