我知道Get-WSManCredSSP
函数;但是,此cmdlet在脚本中效果不佳。这将返回类似于下面的长字符串:有没有简单的方法来检查系统上是否启用了CredSSP?
The machine is configured to allow delegating fresh credentials to the following target(s): wsman/*,wsman/*,wsman/*,wsman/*
This computer is configured to receive credentials from a remote client computer.
我不能轻易包括这是我写一个剧本,所以我在寻找一种替代的方法来检查的CredSSP。
值得一提的是,这是对客户端启用的CredSSP。如果要检查服务器启用的CredSSP,请使用以下内容: (Get-Item WSMan:\ localhost \ Service \ Auth \ CredSSP).value – Anthony