Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # first create NTLM Claims auth provider
- $ap = New-SPAuthenticationProvider
- # create web application
- New-SPWebApplication -Name "ITO Test" -Port 80 -HostHeader "ito.nova.nova" -Url "http://ito.nova.nova" -ApplicationPool "SharePointIto" -ApplicationPoolAccount (Get-SPManagedAccount "NOVA\SERVICE_srvshpdev") -DatabaseName "SPDEV_Content_ITOWA" -Path "C:\inetpub\wwwroot\wss\VirtualDirectories\ITO" -AuthenticationProvider $ap -Confirm:$false -Verbose
- # With Anonymous access
- $ap = New-SPAuthenticationProvider
- $ap.AllowAnonymous = $true
- New-SPWebApplication -Name "RP" -ApplicationPool "SharePoint - RP" -ApplicationPoolAccount (Get-SPManagedAccount "SPDEV\svcspapps") -AllowAnonymousAccess:$true -Url http://$($env:COMPUTERNAME):62200 -DatabaseName WSS_Content_RP -Path "C:\inetpub\wwwroot\wss\VirtualDirectories\RP" -AuthenticationProvider $ap -Confirm:$false -Verbose
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement