Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-SPOTenant

Set-SPOTenant

microsoft.online.sharepoint.powershell.dll, microsoft.online.sharepoint.powershell-1.dll

Synopsis

Sets properties on the SharePoint Online organization.

Syntax

Set-SPOTenant [-ExternalServicesEnabled] [-MaxCompatibilityLevel] [-MinCompatibilityLevel] [-NoAccessRedirectUrl] [<CommonParameters>]

Detailed Description

You can use the Set-SPOTenant cmdlet to enable external services and to specify the versions in which site collections can be created. You can also use the Set-SPOSite cmdlet together with the Set-SPOTenant cmdlet to block access to a site in your organization and redirect traffic to another site.

You must be a SharePoint Online global administrator to run the cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at http://go.microsoft.com/fwlink/p/?LinkId=251832 (http://go.microsoft.com/fwlink/p/?LinkId=251832).

Parameters

-ExternalServicesEnabled <Nullable>

Enables external services for a tenant. External services are defined as services that are not in the Office 365 datacenters.

Aliases

None

Required?

False

Position

Named

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-MaxCompatibilityLevel <Int32>

Specifies the upper bound on the compatibility level for new sites.

Aliases

None

Required?

False

Position

Named

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-MinCompatibilityLevel <Int32>

Specifies the lower bound on the compatibility level for new sites.

Aliases

None

Required?

False

Position

Named

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-NoAccessRedirectUrl <String>

Specifies the URL of the redirected site for those site collections which have the locked state "NoAccess."

Aliases

None

Required?

False

Position

Named

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

Input Type

Return Type

Notes

None

Examples

--------EXAMPLE --------

This example blocks access to https://contoso.sharepoint.com/sites/team1 and redirects traffic to http://www.contoso.com.

C:\PS>Set-SPOSite -Identity https://contoso.sharepoint.com/sites/team1 -LockState NoAccess

C:\PS>Set-SPOTenant -NoAcessRedirectUrl 'http://www.contoso.com'

Introduction to the SharePoint Online management shell
Set up the SharePoint Online Management Shell Windows PowerShell environment
Upgrade-SPOSite
Set-SPOSite