Create Web Applications that Use Classic Mode Authentication in SharePoint 2013 with Windows PowerShell

In SharePoint 2013, you can only configure claims-based authentication when you manage Web applications in the Central Administration page. This is because claims-based authentication is the default and preferred method of user authentication, and is required to take advantage of server-to-server authentication and app authentication. If you would like to create a Web application with classic mode authentication, you can do this using Windows PowerShell cmdlets. In this article, we will walk you through the process of creating Web applications that use classic mode authentication in SharePoint 2013 with Windows PowerShell.

To create your Web application using classic mode authentication:

1. Verify that you have the following memberships:

  • securityadmin – Fixed server role on the SQL Server instance:

  • db_owner – Fixed database role on all databases that are going to be updated:

  • Administrator privileges on the server on which you are running the Windows PowerShell cmdlets:

    2. Start the SharePoint 2013 Management Shell

    • For Windows Server 2008 R2:

    On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell:

    • For Windows Server 2012:

    On the Start screen, click SharePoint 2013 Management Shell:

    If SharePoint 2013 Management Shell is not on the Start screen:

    Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell:

     

    3. At the Windows PowerShell command prompt, type the following:

    New-SPWebApplication -Name <Name> -ApplicationPool <ApplicationPool> -AuthenticationMethod <WindowsAuthType> -ApplicationPoolAccount <ApplicationPoolAccount> -Port <Port> -URL <URL>

     

    Where:

    • <Name>: The name of the new Web application.
    • <ApplicationPool>: The name of the application pool.
    • < WindowsAuthType>: Either NTLM or Kerberos. Kerberos is recommended.
    • <ApplicationPoolAccount>: The user account that this application pool will run as.
    • <Port>: The port on which the Web application will be created in IIS.
    • <URL>: The public URL for the Web application.

    For example:

    New-SPWebApplication -Name “Classic Mode Site” -ApplicationPool “ChauO15sql” -AuthenticationMethod “Kerberos”-ApplicationPoolAccount “domainnameusername” -Port 88 -URL “http://chauo15sql

     

    
    
    •  
      • You will see a new Web application with classic mode authentication in the Central Administration page:

        • After you have successfully created the Web application, you must create the site collection in which you will use your Web application:

        
        

          Now you have a Web application that uses classic mode authentication as the default in SharePoint 2013 instead of using claims-based authentication:

               


              SharePoint

              Applications

              SharePoint apps are stand-alone applications that perform specific tasks on a SharePoint site. Apps can perform functions such as managing a discussion board or knowledge base, performing project management or time tracking tasks, or doing other workflow operations.

              SharePoint

              Product Suites

              Experience greater power and savings by bundling our SharePoint apps and web parts.


              Essentials


              Essentials Plus


              Bamboo Premier


              Project Management Suite


              Knowledge Management Suite


              External User Manager


              SharePoint

              Web Parts

              Extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of Web Parts. Web Parts are the building blocks of pages on a SharePoint site that can be used to customize the user interface and content of a site page. 

              SharePoint

              Product Suites

              Experience greater power and savings by bundling our SharePoint apps and web parts.


              Essentials


              Essentials Plus


              Bamboo Premier


              Project Management Suite


              Knowledge Management Suite


              External User Manager


              Office 365

              Cloud Parts

              Cloud Parts are functional components that extend your SharePoint environment whether it’s hosted, on-premises, or part of Microsoft Office 365. More than mere ports of existing software to the cloud, our Cloud Parts have been built from the ground up to take advantage of the best that the cloud has to offer.

              SharePoint

              Product Suites

              Experience greater power and savings by bundling our SharePoint apps and web parts.


              Cloud Parts Suite for O365/SP Onl.


              Featured Services

              SharePoint Health Check

              A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

              SQL Health Check

              Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

              My SharePointXperts

              The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!