我正在使用Windows 7
,并且想从 运行签名脚本Powershell
,security-settings
Powershell 的设置为"all-signed"
,并且我的脚本是用valid certificate
我公司的 a 签名的。我还添加了.pfx-file
到我的本地证书存储(right-clicked the pfx-file and installed)
。
但是,当我启动签名脚本时,我会收到一条消息:
"Do you want to run software from this untrusted publisher?
File Z:\Powershell Signed Scripts\signed.ps1 is published by CN=[MyCompanyName] and is not trusted on your system. Only run scripts from
trusted publishers.
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help
(default is "D"):"
由于我想在我的系统上自动调用这些脚本,我想将我导入的证书添加到我系统上的受信任列表中,这样当我第一次运行签名脚本时就不会再收到消息了。如何使我的证书成为受信任的证书?