How to disable the credssp authentication using PowerShell?



To disable the credssp on the local computer using PowerShell, use the below command.

PS C:\> Disable-WSManCredSSP -Role Server -Verbose

You can check if the credssp is disabled, using the below command.

PS C:\> Get-ChildItem WSMan:\localhost\Service\Auth | Where-Object {$_.Name
   -eq"CredSSP"} | Select Name, Value
Name    Value
----    -----
CredSSP false

To disable the credssp authentication on the remote computers using PowerShell,

Invoke-Command -ComputerName TestMahchine1, TestMachine2 -
ScriptBlock {
   Disable-WSManCredSSP -Role Server
}

Advertisements