certmgr运行命令后报错

zd_cat 2011-01-27 11:32:19
用命令行方式 运行certmgr.exe -add -c c:\xxx.cer -r localMachine -s root
结果报错 Error:Failed to open the destination store
CertMgr Failed

谁能帮我解决下,该如何操作才能解决此问题?
系统是2008 R2的系统
...全文
889 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xie_michael 2011-08-29
  • 打赏
  • 举报
回复
二楼是对的。
CertMgr.exe can fail for localMachine on Vista because of User Access Control. Right click the executable and select Properties. On the Compatibility tab at the bottom check "Run this program as an administrator". From then on running CertMgr.exe for localMachine should bring up the UAC prompt. When you select "Continue" it should complete successfully.



If you are doing this from a script, try copying certmgr.exe to the local hard drive either to %temp% or to a permanent location. Under the key HKLM or HKCU "\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" create a string value whose name is the full path to the executable. Set the value as "RUNASADMIN". Under HKCU this value will cause the UAC prompt to appear, unless you put it in quiet mode first. http://msdn2.microsoft.com/en-us/library/cc206328.aspx. I don't have Vista available to me at the moment, so I don't know what happens with the value under HKLM.

ljc007 2011-01-30
  • 打赏
  • 举报
回复
证书文件c:\xxx.cer是不是被损坏了?
qishine 版主 2011-01-27
  • 打赏
  • 举报
回复
以管理员运行CMD,
然后再运行这个命令呢?

6,850

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧