PowerShell code for creating Web Application and Site Collection in SP 2013
Create claims-based web applications in SharePoint 2013
1.
$ap = New-SPAuthenticationProvider
2.
New-SPWebApplication -Name "Kuntatalo" -URL "http://e2-web3:13013/" -ApplicationPool "SP2013-AppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\AppPoolUserName") -AuthenticationProvider $ap
Source: https://technet.microsoft.com/en-us/library/ee806885.aspx
Create a site collection in SharePoint 2013
1.
$template = Get-SPWebTemplate "STS#0"
2.
New-SPSite -Url "<URL for the new site collection>" -OwnerAlias "<domain\user>" -Template $template
Source: https://technet.microsoft.com/en-us/library/cc263094.aspx
Comments
Post a Comment