From end-to-end, how does one go about setting Windows Authentication on a ASP.NET app in Windows Server 2012?
In earlier versions of IIS, you could just set <authentication>
, <identity>
, and <authorization>
settings in the Web.Config
and be done with it.
<!-- Web.Config -->
<system.web>
...
<authentication mode="Windows />
<identity impersonate="false />
<authorization>
<allow users="DOMAIN\user1" />
<allow users="DOMAIN\user2" />
<deny users="*" />
</authorization>
Now there is an extra security component that requires you to enable authentication on the IIS site/webapp itself.
I'm scripting a bootstrap for our Window Server 2012 webserver, how to go about completing the configuration for IIS in Powershell?
NOTE: I'll be providing a self answer.