How to enable credssp authentication on windows server using PowerShell?

PowerShellMicrosoft TechnologiesSoftware & Coding

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


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

To enable the credssp,

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


cfg               :
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
Published on 31-Aug-2021 10:09:31