Enable/Disable Forms authentication in IIS7 using Command Line

By Santhosh N

This explains how to enable or disable Forms Authentication in IIS7 using Command Line

When you want to authenticate users using their credentials for granting access to the content of the Web Server, Forms Authentication is useful.

By default, Forms Authentication is set to Windows mode and this can be changed using the following command:

appcmd set config /commit:WEBROOT /section:system.web/authentication /mode: <None | Windows | Passport | Forms>

Ex: appcmd set config /commit:WEBROOT /section:system.web/authentication /mode:Forms

Related FAQs

This explains the default account IIS 7 uses while configuring anonymous access to the ASP.NET Website.
This explains how to change the default account of anonymous access in IIS 7 using Command line.
This explain how to enable or disable Digest Authentication in IIS7 using the Command Line.
Enable/Disable Forms authentication in IIS7 using Command Line  (1846 Views)