如何使用 PowerShell 停用 credssp 認證?
若要使用 PowerShell 在本地計算機上停用 credssp,請使用以下命令。
PS C:\> Disable-WSManCredSSP -Role Server -Verbose
可以使用以下命令,檢視 credssp 是否已停用。
PS C:\> Get-ChildItem WSMan:\localhost\Service\Auth | Where-Object {$_.Name -eq"CredSSP"} | Select Name, Value Name Value ---- ----- CredSSP false
若要使用 PowerShell 在遠端計算機上停用 credssp 認證,
Invoke-Command -ComputerName TestMahchine1, TestMachine2 - ScriptBlock { Disable-WSManCredSSP -Role Server }
廣告