New-SelfSignedCertificate 不会在 Windows 7 上运行 [英] New-SelfSignedCertificate will not run on Windows 7

查看:54
本文介绍了New-SelfSignedCertificate 不会在 Windows 7 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 7 Professional 系统上,似乎无法运行 New-SelfSignedCertificate.我可以在 Windows 10 系统上.

On a Windows 7 Professional system, it seems not possible to run New-SelfSignedCertificate. I could on a Windows 10 system.

是的,shell 是以以管理员身份运行"启动的.

Yes, the shell was started with "Run As Administrator."

PS C:\> new-selfsignedcertificate
new-selfsignedcertificate : The term 'new-selfsignedcertificate' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:1
+ new-selfsignedcertificate
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (new-selfsignedcertificate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  117

推荐答案

如上面的评论所述,这在 Windows 7 中不可用.

As stated in the comments above, this isn't available in Windows 7.

但是,如果您正在寻找具有类似 API 和功能的东西,那么我已经使用了 &可以从 Microsoft 脚本中心推荐这个:

However, if you're looking for something with a similar API and capability, then I have used & can recommend this from Microsoft Script Centre:

https://gallery.technet.microsoft.com/scriptcenter/自签名证书-5920a7c6

这篇关于New-SelfSignedCertificate 不会在 Windows 7 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆