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 }
Updated on: 2021-08-31T11:03:48+05:30

972 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements