Manage Site Collections

Now that you have a basic understanding of a Site Collection, we will examine how to manage one via Windows PowerShell. SharePoint offers us a number of cmdlets to manage Site Collections: New-SPSite, Get-SPSite, Set-SPSite, Remove-SPSite, Move-SPSite, Backup-SPSite, Restore-SPSite, Get-SPSiteAdministration, and Set-SPSiteAdministration. In the following sections, we will examine each of these cmdlets. (We cover backing up and restoring Site Collections in Chapter 17 and, as such, will not review the backup and restore cmdlets here.)

Create a Site Collection

As previously detailed, a Site Collection is a container around a Site hierarchy. When you create a new Site Collection, SharePoint 2010 also creates a root Site that ...

Get Automating Microsoft® SharePoint® 2010 Administration with Windows PowerShell® 2.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.