在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
Run Code Online (Sandbox Code Playgroud)
小智 5
如上面的评论中所述,这在Windows 7中不可用.
但是,如果您正在寻找具有类似API和功能的东西,那么我已经使用过&可以从Microsoft脚本中心推荐这个:
https://gallery.technet.microsoft.com/scriptcenter/self-signed-certificate-5920a7c6
| 归档时间: |
|
| 查看次数: |
14114 次 |
| 最近记录: |