/List 开关

增强存储证书管理工具的 /List 开关列出了连接到计算机的所有符合 IEEE 1667 的 USB 存储设备。 此开关还可用于列出 (证书及其属性) 在指定的 USB 存储设备中的身份验证接收器证书 (ASC) 存储。

    EhStorCertMgrCmd /List [-Volume:
    VolumeName
    ]

子参数

-体积:
符合 IEEE 1667 的 USB 存储的卷名。 有关此参数的格式的详细信息,请参阅 增强型存储证书管理工具概述

注意 若要生成当前连接到计算机的 IEEE 1667 兼容 USB 存储设备的卷名列表,请在命令提示符处键入 EhStorCertMgrCmd /List ,然后按 Enter。

备注

如果使用不带任何参数的 /List 开关,该工具将报告连接到计算机的所有符合 IEEE 1667 的 USB 存储设备。 在这种情况下,仅报告 USB 存储设备的卷名称。

有关特定 USB 存储设备的详细信息,请使用 -Volume 参数指定设备。 在这种情况下,该工具将报告设备上 ASC 存储中存在的证书。

示例

此示例演示如何列出连接到计算机的符合 IEEE 1667 的 USB 存储设备。

EhStorCertMgrCmd /List
Executing list switch...
Volume Name : \\?\usbstor#ieee1667control&ven_msft&prod_disk_sim_v0.01&rev_0.01#123456789&0&control#{4f40006f-b933-4550-b532-2b58cee614d3}

此示例演示如何列出符合 IEEE 1667 的 USB 存储设备的 ASC 存储中证书的详细信息。

EhStorCertMgrCmd.exe /List -Volume:"\\?\usbstor#ieee1667control&ven_msft&prod_disk_sim_v0.01&rev_0.01#123456789&0&control#{4f40006f-b933-4550-b532-2b58cee614d3}"
Executing List operation for specified volume name...
## Certificate Subject             : Microsoft Cert Simulator RSA 1024 SHA-1
---------------------------------
Certificate Index               : 0
Issued To                       : Microsoft Cert Simulator RSA 1024 SHA-1
Issued By                       : Microsoft 1667 Simulator Root
Certificate Expiration Date     : 12/30/9999
Certificate Status              : A certificate chain could not be built to a trusted root authority.

## Certificate Subject             : PCp PKCS SHA-1 1024 no ext
---------------------------------
Certificate Index               : 1
Issued To                       : PCp PKCS SHA-1 1024 no ext
Issued By                       : PCp PKCS SHA-1 1024 no ext
Certificate Expiration Date     : 5/31/2010
Certificate Status              : Certificate is Valid

## Certificate Subject             : HCh PKCS SHA-1 1024 no ext
---------------------------------
Certificate Index               : 2
Issued To                       : HCh PKCS SHA-1 1024 no ext
Issued By                       : HCh PKCS SHA-1 1024 no ext
Certificate Expiration Date     : 5/31/2010
Certificate Status              : Certificate is Valid