How to enable Basic Authentication for IIS 8 in Windows Server 2012

iis-8windows-server-2012

I have a website that needs to use Basic Authentication. I want to host it on a Windows Server 2012 box. But in IIS in the Authentication page for the web site, Basic Authentication is not available.

How do I enable Basic Authentication for IIS 8 in Windows Server 2012?

Best Answer

Open an elevated command-prompt or PowerShell:

dism /online /enable-feature /featurename:IIS-BasicAuthentication

Now you will have the Basic Authentication option in the Authentication page in IIS Manager.

This works in Server Core and is much quicker than using the GUI.