Creating claims-based web application is more flexible with SharePoint PowerShell script than CA. Here, the snippet for http and ssl site.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add-PSSnapin Microsoft.SharePoint.Powershell $ap = New-SPAuthenticationProvider New-SPWebApplication -Name <Name> -ApplicationPool <ApplicationPool> -ApplicationPoolAccount <ApplicationPoolAccount> -URL <URL> -Port <Port> -AuthenticationProvider $ap # <Name> is the name of the new web application that uses claims-based authentication. # <ApplicationPool> is the name of the application pool. # <ApplicationPoolAccount> is the user account that this application pool will run as. # <URL> is the public URL for this web application. # <Port> is the port on which the web application will be created in IIS. # For Non-SSL New-SPWebApplication -Name “Web Portal – 80” -ApplicationPool “Web Portal Application Pool – 80” -ApplicationPoolAccount (Get-SPManagedAccount “sathiya\sp_appPool”) -URL http://webportal.sathiya.com -Port 80 -HostHeader webportal.sathiya.com -DatabaseName WSS_Content_WebPortal_80 -Path “D:\Web_Portal_80” -AuthenticationProvider $ap # For SSL New-SPWebApplication -Name “Web Portal – 443” -ApplicationPool “Web Portal Application Pool – 443” -ApplicationPoolAccount (Get-SPManagedAccount “sathiya\sp_appPool”) -URL https://webportal.sathiya.com -Port 443 -HostHeader webportal.sathiya.com -DatabaseName WSS_Content_WebPortal_443 -Path “D:\Web_Portal_443” -SecureSocketsLayer -AuthenticationProvider $ap |
Cheers…!
Leave a Reply