我知道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