1

I followed https://technet.microsoft.com/en-us/library/ee806885.aspx to Create a claims-based web application by using Windows PowerShell.

it created successfully but enables Form based authentication and anonymous authentication.

How create a new web application without enable Form based authentication and anonymous authentication?

EDIT:

enter image description here

enter image description here

EDIT

IIS warning

enter image description here

2 Answers 2

1

try this one

$authprov = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication -DisableKerberos

New-SPWebApplication -Name "name of the web" -Port "port number" -Path "Path of IIS site" -AuthenticationMethod NTLM -AuthenticationProvider $authprov -Url "Url of the Web application" -ApplicationPool "App Pool Name" -ApplicationPoolAccount (Get-SPManagedAccount "Domain\user") -DatabaseServer "DB Server name" -DatabaseName "DB anme"
13
  • Thank you sir, I got WARNING: The Windows Classic authentication method is deprecated in this release and the default behavior of this cmdlet, which creates Windows Cl based web application, is obsolete. It is recommended to use Claims authentication methods. You can create a web application that uses Claims authentication method by specifying the AuthenticationProvider parameter this cmdlet.
    – Aashirya
    May 11, 2017 at 12:46
  • Refer to the go.microsoft.com/fwlink/?LinkId=234549 for more information. Please note that the default behavior of this cmdle expected to change in the future release to create a Claims authenticatio based web application instead of a Windows Classic based web application.
    – Aashirya
    May 11, 2017 at 12:46
  • yes, ignore it and let it finish...see if it create a Web application as per ur requirement
    – Waqas Sarwar MVP
    May 11, 2017 at 12:47
  • ok sir, i got the same warning in the past. the warning run away when i removed -AuthenticationMethod NTLM , why i need AuthenticationMethod NTLM
    – Aashirya
    May 11, 2017 at 12:49
  • 1
    dont change the IIS settings, these are required in order to SharePoint work....like Anonymous access and Form base....it will not configure it.....
    – Waqas Sarwar MVP
    May 11, 2017 at 13:32
0

Create a classic-mode web application by using PowerShell

Use the procedure in this section to create a new classic-mode SharePoint Server web application using PowerShell. To create a classic-mode web application by using PowerShell 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 to be updated. Administrators group on the server on which you are running PowerShell cmdlets. You must read about_Execution_Policies. From the PowerShell command prompt, type the following:

New-SPWebApplication -Name -ApplicationPool -AuthenticationMethod -ApplicationPoolAccount -Port -URL

https://docs.microsoft.com/en-us/sharepoint/security-for-sharepoint-server/create-claims-based-web-applications

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.