Index of Windows PowerShell for SharePoint Online cmdlets

 

Applies to: SharePoint Online

Topic Last Modified: 2017-09-25

This article lists Windows PowerShell cmdlets that are included with SharePoint Online in verb order and noun order.

In this article:

 

Cmdlet name Description

Add-SPOTenantCdnOrigin

Configures a new origin to Public or Private content delivery network (CDN).

Add-SPOUser

Adds an existing Office 365 user or an Office 365 security group to a SharePoint group.

Connect-SPOService

Connects a SharePoint Online global administrator to a SharePoint Online connection (the SharePoint Online Administration Center). This cmdlet must be run before any other SharePoint Online cmdlets can run.

Disconnect-SPOService

Disconnects from a SharePoint Online service.

Get-SPOAppErrors

Returns application errors.

Get-SPOAppInfo

Returns all installed applications.

Get-SPOSiteDataEncryptionPolicy

Returns the current state of SharePoint Online Customer Key Encryption for your tenant, and the location of your keys.

Get-SPODeletedSite

Returns all deleted site collections that are in the Recycle Bin.

Get-SPOExternalUser

Returns external users that are located in the tenant's folder based on specified criteria.

Get-SPOSite

Returns one or more site collections.

Get-SPOSiteGroup

Returns all the groups on the specified site collection.

Get-SPOTenant

Returns SharePoint Online organization properties.

Get-SPOTenantCdnAllowedFileTypes

Returns a list of allowed extensions for each type of the content delivery network (CDN).

Get-SPOTenantCdnEnabled

Returns whether Public content delivery network (CDN) or Private CDN is enabled on the tenant level.

Get-SPOTenantCdnOrigins

Lists all the configured origins under the tenancy or under a given site.

Get-SPOTenantLogEntry

Retrieves SharePoint Online company logs.

Get-SPOTenantLogLastAvailableTimeInUtc

Returns the time when the SharePoint Online organization logs are collected.

Get-SPOTenantSyncClientRestriction

Returns the current tenant configuration status.

Get-SPOUser

Returns the SharePoint Online user or security group accounts that match given search criteria.

Get-SPOWebTemplate

Shows all site templates that match the given identity.

New-SPOSite

Creates a new SharePoint Online site collection for the current company.

New-SPOSiteGroup

Creates a new group in a SharePoint Online site collection.

Register-SPODataEncryptionPolicy

Onboards your SharePoint Online tenant to Customer Key Encryption.

Remove-SPODeletedSite

Removes a SharePoint Online deleted site collection from the Recycle Bin.

Remove-SPOExternalUser

Permanently removes a collection of external users from the tenant’s folder.

Remove-SPOSite

Sends a SharePoint Online site collection to the SharePoint Online Recycle Bin.

Remove-SPOSiteGroup

Removes a SharePoint Online group from a site collection.

Remove-SPOTenantCdnOrigin

Removes a new origin from the Public or Private content delivery network (CDN).

Remove-SPOTenantSyncClientRestriction

Disables the feature for the tenancy.

Remove-SPOUser

Removes a user or a security group from a site collection or a group.

Repair-SPOSite

Checks and repairs the specified site collection and its contents.

Request-SPOUpgradeEvaluationSite

Requests to create a copy of an existing site collection for the purposes of validating the effects of upgrade without affecting the original site.

Restore-SPODeletedSite

Restores a SharePoint Online deleted site collection from the Recycle Bin.

Set-SPOSite

Sets or updates the values of one or more properties for a site collection.

Set-SPOSiteGroup

Updates the SharePoint Online owner and permission level on a group inside a site collection.

Set-SPOTenant

Sets properties on the SharePoint Online organization.

Set-SPOTenantSyncClientRestriction

Enables the tenancy and sets the domain GUIDs.

Set-SPOUser

Configures properties on an existing user.

Test-SPOSite

Tests a SharePoint Online site collection.

Update-SPODataEncryptionPolicy

Updates the keys being used to encrypt your SharePoint Online and OneDrive for Business content.

Upgrade-SPOSite

Starts the upgrade process on a site collection.

 

Cmdlet name Description

Get-SPOAppErrors

Returns application errors.

Get-SPOAppInfo

Returns all installed applications.

Get-SPODeletedSite

Returns all deleted site collections that are in the Recycle Bin.

Remove-SPODeletedSite

Removes a SharePoint Online deleted site collection from the Recycle Bin.

Restore-SPODeletedSite

Restores a SharePoint Online deleted site collection from the Recycle Bin.

Get-SPOExternalUser

Returns external users that are located in the tenant's folder based on specified criteria.

Remove-SPOExternalUser

Permanently removes a collection of external users from the tenant’s folder.

Connect-SPOService

Connects a SharePoint Online global administrator to a SharePoint Online connection (the SharePoint Online Administration Center). This cmdlet must be run before any other SharePoint Online cmdlets can run.

Disconnect-SPOService

Disconnects from a SharePoint Online service.

Get-SPOSite

Returns one or more site collections.

New-SPOSite

Creates a new SharePoint Online site collection for the current company.

Remove-SPOSite

Sends a SharePoint Online site collection to the SharePoint Online Recycle Bin.

Repair-SPOSite

Checks and repairs the specified site collection and its contents.

Set-SPOSite

Sets or updates the values of one or more properties for a site collection.

Test-SPOSite

Tests a SharePoint Online site collection.

Upgrade-SPOSite

Starts the upgrade process on a site collection.

Get-SPOSiteDataEncryptionPolicy

Returns the current state of SharePoint Online Customer Key Encryption for your tenant, and the location of your keys.

Register-SPODataEncryptionPolicy

Onboards your SharePoint Online tenant to Customer Key Encryption.

Update-SPODataEncryptionPolicy

Updates the keys being used to encrypt your SharePoint Online and OneDrive for Business content.

Get-SPOSiteGroup

Gets all the groups on the specified site collection.

New-SPOSiteGroup

Creates a new group in a SharePoint Online site collection.

Remove-SPOSiteGroup

Removes a SharePoint Online group from a site collection.

Set-SPOSiteGroup

Updates the SharePoint Online owner and permission level on a group inside a site collection.

Get-SPOTenant

Returns SharePoint Online organization properties.

Set-SPOTenant

Sets properties on the SharePoint Online organization.

Get-SPOTenantCdnAllowedFileTypes

Returns a list of allowed extensions for each type of the content delivery network (CDN).

Set-SPOTenantCdnAllowedFileTypes

Sets a list of allowed extensions for each type of the content delivery network (CDN).

Get-SPOTenantCdnEnabled

Returns whether Public content delivery network (CDN) or Private CDN is enabled on the tenant level.

Set-SPOTenantCdnEnabled

Enables or disables Public content delivery network (CDN) or Private CDN on the tenant level.

Add-SPOTenantCdnOrigin

Configures a new origin to Public or Private content delivery network (CDN).

Remove-SPOTenantCdnOrigin

Removes a new origin from the Public or Private content delivery network (CDN).

Get-SPOTenantCdnOrigins

Lists all the configured origins under the tenancy or under a given site.

Get-SPOTenantLogEntry

Retrieves SharePoint Online company logs.

Request-SPOUpgradeEvaluationSite

Requests to create a copy of an existing site collection for the purposes of validating the effects of upgrade without affecting the original site.

Add-SPOUser

Adds an existing Office 365 user or an Office 365 security group to a SharePoint group.

Get-SPOUser

Returns the SharePoint Online user or security group accounts that match the given search criteria.

Remove-SPOUser

Removes a user or a security group from a site collection or a group.

Set-SPOUser

Configures properties on an existing user.

Get-SPOWebTemplate

Shows all site templates that match the given identity.

Show: