Applications Systems

Unable to setup Windows Authentication for the PowerShell website

This article resolves an issue when users are unable to setup Windows Authentication for the PowerShell website.

First published date

10/10/2018 1:56 PM

Last published date

6/26/2020 3:03 AM

Overview

Unable to setup Windows Authentication for the PowerShell website.

Product section

Server Application Monitor

Resolution

  1. Open CLI in Administrator context,
  2. Type:
    cd "%systemroot%\system32\inetsrv\"
  3. Then type: 
    appcmd.exe unlock config -section:system.webServer/security/authentication/windowsAuthentication
  4. Open PS in Administrator context, and type the following commands:
    • Import-Module WebAdministration: 
      (Get-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell').enabled
    • If value returned is 'False, type: 
      Set-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell' -value True