Export (0) Print
Expand All

Use Windows PowerShell cmdlets to manage sites in SharePoint 2013

Published: July 16, 2012

Summary: Learn about the Windows PowerShell cmdlets that you can use to manage sites in a SharePoint 2013 farm.

Applies to:  SharePoint Foundation 2013 | SharePoint Server 2013 Standard | SharePoint Server 2013 Enterprise 

The following table shows the Windows PowerShell cmdlets that you can use to manage sites in a SharePoint farm.

Index of Windows PowerShell cmdlets for SharePoint 2013 includes a complete list of all cmdlets in SharePoint 2013.

Cmdlet name Description

Get-SPCustomLayoutsPage

Returns a mapping to a custom layout page.

Get-SPUser

Returns the user account or accounts that match a given search criteria.

Get-SPWeb

Returns all subsites that match the given criteria.

Get-SPWebApplication

Returns all Web applications that match the given criteria.

Get-SPFarm

Returns the local SharePoint farm.

Get-SPProduct

Returns a list of the SharePoint-related products installed in the farm and the versions of all updates installed for each product.

Get-SPServer

Returns the server or servers in the farm that match the given identity.

Get-SPDeletedSite

Gets a list of deleted site collections. This cmdlet was introduced in SharePoint Server 2010 with Service Pack 1 (SP1).

Get-SPSite

Returns all site collections that match the given criteria.

Get-SPSiteAdministration

Returns a site administration object that farm administrators can use to view certain information about site collections to which they might not have access.

Get-SPSiteSubscription

Returns the site subscription for the given URL or all site subscriptions in the local farm.

Get-SPSiteSubscriptionConfig

Returns the configuration properties of a site subscription.

Move-SPSite

Moves site collections from one content database to another.

Move-SPUser

Migrates a user account in SharePoint 2010 Products.

New-SPSite

Creates a new site collection at the specified URL.

New-SPSiteSubscription

Creates a new site subscription.

New-SPUser

Adds an existing user to a SharePoint site with the designated permissions.

New-SPWeb

Creates a new site in an existing site collection.

New-SPWebApplication

Creates a new Web application within the local farm.

New-SPWebApplicationExtension

Creates a new zone instance for the Web application.

Remove-SPDeletedSite

Removes a deleted site collection. This cmdlet was introduced in SharePoint Server 2010 with Service Pack 1 (SP1).

Remove-SPSite

Completely deletes an existing site collection and all subsites.

Remove-SPSiteSubscription

Removes data stored in a subscription settings service application for a set of site subscriptions.

Remove-SPSiteSubscriptionSettings

Removes the settings service data for a specified site subscription, or finds and removes orphaned data.

Remove-SPUser

Removes a user from a Web site.

Remove-SPWeb

Completely deletes the specified Web.

Remove-SPWebApplication

Deletes the specified Web application.

Rename-SPServer

Renames a server that is currently connected to the farm.

Restore-SPDeletedSite

Restores a deleted site collection. This cmdlet was introduced in SharePoint Server 2010 with Service Pack 1 (SP1).

Set-SPSite

Configures the specified site collection.

Set-SPSiteAdministration

Allows farm administrators to configure any site collection.

Set-SPSiteSubscriptionConfig

Sets the configuration properties of a site subscription.

Set-SPSubscriptionSettingsServiceApplication

Sets properties of a subscription settings service application.

Set-SPUser

Configures properties on an existing user.

Set-SPWebApplication

Configures the specified Web application.

Set-SPWeb

Configures the specified subsite.

Export-SPSiteSubscriptionSettings

Creates a backup file of site subscription data.

Import-SPSiteSubscriptionSettings

Restores a backup of subscription site settings to the given subscription identifier.

Get-SPDeletedSite

Gets a list of deleted site collections.

Remove-SPDeletedSite

Removes a deleted site collection.

Restore-SPDeletedSite

Restores a deleted site collection.

Get-SPSiteUrl

Displays all URL mappings for the site.

Remove-SPSiteUrl

Removes an URL mapping from the site.

Set-SPSiteUrl

Adds or changes an URL mapping for the site.

Get-SPSiteSubscriptionIRMConfig

Gets the Information Rights Management (IRM) settings.

Move-SPDeletedSite

Moves deleted site collections from one content database to another.

Set-SPIRMSettings

Sets the Information Rights Management (IRM) settings.

Set-SPSiteSubscriptionIRMConfig

Sets the Information Rights Management (IRM) settings.

Get-SPIRMSettings

Returns the Information Rights Management (IRM) settings.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft