How to disable basic authentication for windows server using PowerShell?

PowerShellMicrosoft TechnologiesSoftware & Coding

<p>Basic authentication is the insecure authentication for the windows. To disable the basic authentication on the windows server using PowerShell,</p><pre class="prettyprint notranslate">PS C:\&gt; Set-Item -Path &quot;WSMan:\localhost\Service\Auth\Basic&quot; -Value $false -Verbose</pre><p>To disable the basic authentication on the remote windows servers using PowerShell, use the below command,</p><pre class="prettyprint notranslate">Invoke-Command -ComputerName TestMahchine1, TestMachine2 - ScriptBlock { &nbsp; &nbsp;Set-Item -Path &quot;WSMan:\localhost\Service\Auth\Basic&quot; -Value &nbsp; &nbsp;$false -Verbose }</pre>
raja
Updated on 31-Aug-2021 11:03:12

Advertisements