Fast Site Collection Creation for a template,
Enable-SPWebTemplateForSiteMaster -Template “STS#0” -CompatibilityLevel 15
Enable-SPWebTemplateForSiteMaster -Template “STS#0” -CompatibilityLevel 15
Let’s get the DB where we have already provisioned a site collection.
$DB = Get-SPContentDatabase -site http://peakfinders/sites/fast
Now lets create a SiteMaster in it.
New-SPSiteMaster -ContentDatabase $DB -Template “STS#0”
Get-SPSiteMaster $DB
Open Central Administration >View all the site collections
Remove-SPSiteMaster to remove the SiteMaster from your Content database.
Create new site collection using –CreateFromSiteMaster parameter.
New-SPSite http://sp2016vm:4430/sites/FastSite1 -ContentDatabase $DB -CompatibilityLevel 15 -CreateFromSiteMaster -OwnerAlias “sp2016\sp16_farm”
No comments:
Post a Comment