Prevent site collection administrators from upgrading site collections
If you are upgrading from SharePoint 2010 to SharePoint 2013, and you need to prevent site collection administrators from upgrading site collections, then you can disable Self Service Upgrades using the Get-SPSite cmdlet: $portal = Get-SPSite “http://portal.lab.local” $portal.AllowSelfServiceUpgrade = False…
PowerShell script to list sites that have a specified feature enabled
The following PowerShell script will enumerate all sites within a Site Collection and report on where a particular feature has been enabled using the Get-SPWeb cmdlet. In the example I am reporting on the SharePoint Server Enterprise Site Features feature…
SharePoint 2013 – URL mappings for Host Named Site Collections
The only way to add a URL mapping to a Host Named Site Collection is by using PowerShell and the Set-SPSiteURL cmdlet. Below is an example of how to add a URL to an existing site collection: $Site = Get-SPSite ‘https://intranet.webbworld.local’…
SharePoint 2013 – creating a host named site collection using PowerShell
The only way to create a Host Named Site Collection (HNSC) is using PowerShell and the New-SPSite cmdlet. Below is an example of how to do this: New-SPSite -URL “https://doc-centre.webbworld.local” -HostHeaderWebApplication “https://portal.webbworld.local” -Name “Doc Centre” -Description “WebbWorld Document Centre” -Template…
Moving a site collection between content databases (SharePoint 2013 using PowerShell
I have created a new site collection within a SharePoint 2013 web application and want it to use a new content database. After creating the new content database using the New-SPContentDatabase cmdlet I used the Move-SPSite cmdlet: Move-SPSite <URL> –DestinationDatabase…
Enable Document Sets for a site collection
Document sets are used to organise groups of similar or related documents and can be useful for managing projects. This feature is disabled by default and can be enabled at the site collection using the Enable-SPFeature PowerShell command. Enable-SPFeature DocumentSet…
Backing up a site collection from the command line
In addition to backing up my SharePoint site collection with Symantec BackupExec, I will occasionally use the command line tools to backup to file. This is quite easy to do in just a few steps: Logon to the SharePoint server…
Using Symantec Backup Exec to backup SharePoint
As I use Symantec BackupExec on my network I have purchased the agent for SharePoint. This will allow me to backup the entire server or farm with the ability to perform a granluar restore. To backup the SharePoint server efficiently…