12

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?

epotter
  • 707
  • 3
  • 6
  • 11

3 Answers3

23

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.

Peter Hahndorf
  • 13,763
  • 3
  • 37
  • 58
  • 3
    In addition to this answer, it may be worth to comment that you will probably need to perform an `iisreset` after doing this. – Daniel Marín Sep 25 '17 at 07:31
8

In server manager, in Web Server (IIS)/Security, add Basic Authentication which then should show up in IIS web site authentication settings.

Yung Chou
  • 89
  • 1
4

I know this is an older topic, but I had the same question as epotter regarding where to find the option. I discovered that it's actually part of the IIS role in Server Manager's 'Add Roles and Features', Under 'Web Server', 'Web Server', 'Security'. You should find Basic Authentication as a check box.

Dirk