1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
############################################################## ##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 ############################################################### |