Skip to content

Instantly share code, notes, and snippets.

@pmatthews05
Created September 6, 2016 12:17
Show Gist options
  • Select an option

  • Save pmatthews05/ab66818748e082d64c1df542cdbfd1c7 to your computer and use it in GitHub Desktop.

Select an option

Save pmatthews05/ab66818748e082d64c1df542cdbfd1c7 to your computer and use it in GitHub Desktop.
$applicationPool = "SharePoint - HNSC - 11111"
$ServiceAcct = "cfcode2016\SP_Content"
$WebApp = "SharePoint HNSC Web Application"
$contentDB = "SP_HNSC_ContentDB"
New-SPWebApplication -ApplicationPool $applicationPool -ApplicationPoolAccount $serviceAcct -Name $WebApp -Port 11111 -AuthenticationProvider (new-spauthenticationprovider) -databaseName $contentDB -secureSocketsLayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment