Tag Archives: Powershell

Setup SharePoint site collection by using Powershell

Write-Host # define variables for script $SiteTitle = "Lab x – Best Practices" $SiteUrl = "http://intranet.contoso.com/sites/Labxx" $SiteTemplate = "STS#0" # check to ensure Microsoft.SharePoint.PowerShell is loaded $snapin = Get-PSSnapin | Where-Object {$_.Name -eq ‘Microsoft.SharePoint.Powershell’} if ($snapin -eq $null) { Write-Host … Continue reading

Posted in SharePoint | Tagged | Leave a comment