############################################################## ##Code below creates classic based web app host named site collection ############################################################## $applicationPool = "HNSCTempU Classic ApplicationPool" $ServiceAcct = "BEAVERSOIL\svc_spu15svcapps" $WebAppName = "SharePoint - 10003 - HNSC - Temp Classic" $webAppURL = "https://hnsctempu.BeaversOil.com" $contentDB = "SPUAT_WSS_Content_HNSC_classic" New-SPWebApplication -Name $WebAppName -Port 10003 -URL $webAppURL -ApplicationPool $applicationPool -ApplicationPoolAccount (Get-SPManagedAccount $ServiceAcct) -DatabaseName $contentDB -SecureSocketsLayer ############################################################## ##Code below creates classic based top site in the classic web app ############################################################## $primarySiteCollectionOwnerAcct = "BEAVERSOIL\ssimpkins" $PrimarySCOwnerEmail = "stacy.simpkins@BeaversOil.com" $webApp0URL = "https://hnsctempu.beaversoil.com:10003" New-SPSITE -URL $webApp0URL -owneralias $primarySiteCollectionOwnerAcct -owneremail $PrimarySCOwnerEmail -Template STS#1 ############################################################### ##At this point you're ready to mount databases or backup restore to it ###############################################################