How to enable Windows Authentication in IIS if it is missing

19 July 2022 | Viewed 17739 times

To enable in Windows in ASP.NET websites you need to do

Enabling Windows Authentication on asp.net website

  1. Open Internet Information Services (IIS) Manager
  2. Navigate to Server -> Sites -> Default Website -> Click on your website
  3. In Right-side panel, under IIS section double click on "Authentication"
  4. Select Windows Authentication and "Enable it.

If "Windows Authentication" is missing in IIS manager, proceed for next steps.

Enabling Windows Authentication feature in IIS

  1. Open Control Panel
  2. Click on Programs
  3. Click on Turn Windows features on or off
  4. Navigate to "Internet Information Services"
  5. Expand "World Wide Web Services"
  6. Under "Security" select Windows Authentication
  7. Click Ok, and then Restart your computer

If "Windows Authentication" is missing in Windows Features, proceed for next steps.

Enabling Windows Authentication in Windows Features

Windows Home editions doesn't include Windows Authentication (and a bunch of other IIS security features). However, the package with these features is sitting right there in your OS and you can manually install it.
  1. Open an command prompt in Administration Mode
  2. Run below command
Command

dism /online /norestart /add-package:%SystemRoot%\servicing\Packages\Microsoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~amd64~~10.0.22000.282.mum



PreviousNext