Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 试图从根存储导出证书时,对象或属性已存在错误_Powershell - Fatal编程技术网

Powershell 试图从根存储导出证书时,对象或属性已存在错误

Powershell 试图从根存储导出证书时,对象或属性已存在错误,powershell,Powershell,我正在尝试将我的整个证书:\CurrentUser\Root\证书存储导出到.SST文件。我做错了什么 在管理员的powershell中-我正在使用: Get-ChildItem -Path Cert:\CurrentUser\Root\ | Export-Certificate -FilePath C:\certs\test.sst -Type SST. 它返回: 导出证书:对象或属性已存在。(例外情况 来自第1行的HRESULT:0x80092005)字符:46 + ... User\ro

我正在尝试将我的整个
证书:\CurrentUser\Root\
证书存储导出到.SST文件。我做错了什么

在管理员的powershell中-我正在使用:

Get-ChildItem -Path Cert:\CurrentUser\Root\ | Export-Certificate -FilePath C:\certs\test.sst -Type SST.
它返回:

导出证书:对象或属性已存在。(例外情况 来自第1行的HRESULT:0x80092005)字符:46 + ... User\root |导出证书-文件路径c:\certs\allcertasdfs.sst-T。。。 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +类别信息:未指定:(:)[出口证书],COMException +FullyQualifiedErrorId:System.Runtime.InteropServices.COMException,Microsoft.CertificateServices.Commands.ExportCertificateCommand


我要检查的第一件事是查看错误消息是否正确-在目的地已经有这样一个文件。[grin]我打赌您有一个重复的证书,因为一个或多个证书存储在多个物理存储中(注册表/企业/第三方/等等)。管道连接到
Select-Unique
,然后连接到
Export Certificate
,我猜您不会遇到这个错误。选择提示成功了-谢谢!我要检查的第一件事是查看错误消息是否正确-在目的地已经有这样一个文件。[grin]我打赌您有一个重复的证书,因为一个或多个证书存储在多个物理存储中(注册表/企业/第三方/等等)。管道连接到
Select-Unique
,然后连接到
Export Certificate
,我猜您不会遇到这个错误。选择提示成功了-谢谢!