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
Last published date
Overview
Product section
Resolution
- Open CLI in Administrator context,
- Type:
cd "%systemroot%\system32\inetsrv\"
- Then type:
appcmd.exe unlock config -section:system.webServer/security/authentication/windowsAuthentication
- 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
- Import-Module WebAdministration: