Skip to main content

Posts

Showing posts from October, 2019

Fixing HTTP Error 401.2 unauthorized on local IIS

Sometimes the Windows Authentication got broken on IIS servers so you cannot log in locally on the server. In that case you get the dreadfully error message

HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.
To fix this issue you can repair the Windows Authentication feature with the following PowerShell commands:

Remove-WindowsFeature Web-Windows-Auth Add-WindowsFeature Web-Windows-Auth