claims-based web application by using Windows PowerShell
-
20-12-2020 - |
Вопрос
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:
EDIT
IIS warning
Решение
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"
Другие советы
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