gpt4 book ai didi

powershell - New-SelfSignedCertificate 不会在 Windows 7 上运行

转载 作者:行者123 更新时间:2023-12-03 16:47:22 29 4
gpt4 key购买 nike

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

是的,shell 以“以管理员身份运行”启动。

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 中不可用。

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

https://gallery.technet.microsoft.com/scriptcenter/self-signed-certificate-5920a7c6

关于powershell - New-SelfSignedCertificate 不会在 Windows 7 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43592526/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com