Syntax error How to get the windows authentication settings using PowerShell?

How to get the windows authentication settings using PowerShell?



To get the windows server authentication setting using PowerShell, we can use the below command on the local server.

PS C:\> Get-ChildItem WSMan:\localhost\Service\Auth | Select name, value

Output

Name              Value
----              -----
Basic             false
Kerberos          true
Negotiate         true
Certificate       false
CredSSP           false
CbtHardeningLevel Relaxed

To get the same settings on the remote servers, use the below command.

Invoke-Command -ComputerName TestMahchine1, TestMachine2 -
ScriptBlock {
   Get-ChildItem WSMan:\localhost\Service\Auth
} | Select PSComputerName, Name, Auth
Updated on: 2021-08-31T11:07:33+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements