Enable CredSSP Authentication on Windows Server Using PowerShell



Before enabling the credssp authentication for the windows server, we will first check the credssp status using the below command.

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

Output

Name    Value
----    -----
CredSSP false

To enable the credssp,

PS C:\> Enable-WSManCredSSP -role server -Force

Output

cfg               : http://schemas.microsoft.com/wbem/wsman/1/config/service/auth
lang              : en-US
Basic             : false
Kerberos          : true
Negotiate         : true
Certificate       : false
CredSSP           : true
CbtHardeningLevel : Relaxed

To enable the credssp authentication on the remote computers,

Invoke-Command -ComputerName TestMahchine1, TestMachine2 -
ScriptBlock {
   Enable-WSManCredSSP -Role Server -Force
}
Updated on: 2021-08-31T11:05:39+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements