Advertisement
private775

New WebApplication

Jan 27th, 2015
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # first create NTLM Claims auth provider
  2. $ap = New-SPAuthenticationProvider
  3. # create web application
  4. 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
  5.  
  6. # With Anonymous access
  7. $ap = New-SPAuthenticationProvider
  8. $ap.AllowAnonymous = $true
  9.  
  10. 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