Set-SPOTenant

Sets properties on the SharePoint Online organization.

Syntax

Set-SPOTenant
   [-BccExternalSharingInvitations <Boolean>]
   [-BccExternalSharingInvitationsList <String>]
   [-DisplayStartASiteOption <Boolean>]
   [-ExternalServicesEnabled <Boolean>]
   [-MaxCompatibilityLevel <Int32>]
   [-MinCompatibilityLevel <Int32>]
   [-NoAccessRedirectUrl <String>]
   [-OfficeClientADALDisabled <Boolean>]
   [-ProvisionSharedWithEveryoneFolder <Boolean>]
   [-RequireAcceptingAccountMatchInvitedAccount <Boolean>]
   [-SearchResolveExactEmailOrUPN <Boolean>]
   [-SharingCapability <SharingCapabilities>]
   [-ShowAllUsersClaim <Boolean>]
   [-ShowEveryoneClaim <Boolean>]
   [-ShowEveryoneExceptExternalUsersClaim <Boolean>]
   [-SignInAccelerationDomain <String>]
   [-StartASiteFormUrl <String>]
   [-UsePersistentCookiesForExplorerView <Boolean>]
   [-CommentsOnSitePagesDisabled <Boolean>]
   [-DefaultSharingLinkType <SharingLinkType>]
   [-DisallowInfectedFileDownload <Boolean>]
   [-EnableGuestSignInAcceleration <Boolean>]
   [-FileAnonymousLinkType <AnonymousLinkType>]
   [-FolderAnonymousLinkType <AnonymousLinkType>]
   [-IPAddressAllowList <String>]
   [-IPAddressEnforcement <Boolean>]
   [-IPAddressWACTokenLifetime <Int32>]
   [-LegacyAuthProtocolsEnabled <Boolean>]
   [-NotificationsInOneDriveForBusinessEnabled <Boolean>]
   [-NotificationsInSharePointEnabled <Boolean>]
   [-NotifyOwnersWhenInvitationsAccepted <Boolean>]
   [-NotifyOwnersWhenItemsReshared <Boolean>]
   [-ODBAccessRequests <SharingState>]
   [-ODBMembersCanShare <SharingState>]
   [-OneDriveForGuestsEnabled <Boolean>]
   [-OneDriveStorageQuota <Int64>]
   [-OrphanedPersonalSitesRetentionPeriod <Int32>]
   [-OwnerAnonymousNotification <Boolean>]
   [-PermissiveBrowserFileHandlingOverride <Boolean>]
   [-PreventExternalUsersFromResharing <Boolean>]
   [-PublicCdnAllowedFileTypes <String>]
   [-PublicCdnEnabled <Boolean>]
   [-RequireAnonymousLinksExpireInDays <Int32>]
   [-SharingAllowedDomainList <String>]
   [-SharingBlockedDomainList <String>]
   [-SharingDomainRestrictionMode <SharingDomainRestrictionModes>]
   [-ShowPeoplePickerSuggestionsForGuestUsers <Boolean>]
   [-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>]
   [-UseFindPeopleInPeoplePicker <Boolean>]
   [-UserVoiceForFeedbackEnabled <Boolean>]
   [<CommonParameters>]

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.

Examples

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

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Optional Parameters

-BccExternalSharingInvitations

Enables the BCC for External Sharing feature. When the feature is enabled, all external sharing invitations will blind copy the e-mail messages listed in the BccExternalSharingsInvitationList.

Accepts a value of true (enabled) or false (disabled). By default this feature is set to false.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-BccExternalSharingInvitationsList

Specifies a list of e-mail addresses to be BCC'd when the BCC for External Sharing feature is enabled. Multiple addresses can be specified by creating a comma separated list with no spaces.

For example: joe@contoso.com,bob@contoso.com

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-CommentsOnSitePagesDisabled

{{Fill CommentsOnSitePagesDisabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-DefaultSharingLinkType

{{Fill DefaultSharingLinkType Description}}

Type:SharingLinkType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-DisallowInfectedFileDownload

{{Fill DisallowInfectedFileDownload Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-DisplayStartASiteOption

Determines whether tenant users see the Start a Site menu option.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-EnableGuestSignInAcceleration

{{Fill EnableGuestSignInAcceleration Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ExternalServicesEnabled

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

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-FileAnonymousLinkType

{{Fill FileAnonymousLinkType Description}}

Type:AnonymousLinkType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-FolderAnonymousLinkType

{{Fill FolderAnonymousLinkType Description}}

Type:AnonymousLinkType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-IPAddressAllowList

{{Fill IPAddressAllowList Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-IPAddressEnforcement

{{Fill IPAddressEnforcement Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-IPAddressWACTokenLifetime

{{Fill IPAddressWACTokenLifetime Description}}

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-LegacyAuthProtocolsEnabled

{{Fill LegacyAuthProtocolsEnabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-MaxCompatibilityLevel

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

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-MinCompatibilityLevel

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

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-NoAccessRedirectUrl

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

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-NotificationsInOneDriveForBusinessEnabled

{{Fill NotificationsInOneDriveForBusinessEnabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-NotificationsInSharePointEnabled

{{Fill NotificationsInSharePointEnabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-NotifyOwnersWhenInvitationsAccepted

{{Fill NotifyOwnersWhenInvitationsAccepted Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-NotifyOwnersWhenItemsReshared

{{Fill NotifyOwnersWhenItemsReshared Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ODBAccessRequests

{{Fill ODBAccessRequests Description}}

Type:SharingState
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ODBMembersCanShare

{{Fill ODBMembersCanShare Description}}

Type:SharingState
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-OfficeClientADALDisabled

PARAMVALUE: $true | $false

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-OneDriveForGuestsEnabled

{{Fill OneDriveForGuestsEnabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-OneDriveStorageQuota

{{Fill OneDriveStorageQuota Description}}

Type:Int64
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-OrphanedPersonalSitesRetentionPeriod

{{Fill OrphanedPersonalSitesRetentionPeriod Description}}

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-OwnerAnonymousNotification

{{Fill OwnerAnonymousNotification Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-PermissiveBrowserFileHandlingOverride

{{Fill PermissiveBrowserFileHandlingOverride Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-PreventExternalUsersFromResharing

{{Fill PreventExternalUsersFromResharing Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ProvisionSharedWithEveryoneFolder

Creates a Shared with Everyone folder in every user's new OneDrive for Business document library.

The default value is True which mean the folder is created.

A value of False means no folder is created when the site and OneDrive for Business document library is created.

The default behavior of the Shared with Everyone folder is changing in August 2015. For additional information about the change, see Provision the Shared with Everyone folder in OneDrive for Business (https://support.office.com/en-us/article/Provision-the-Shared-with-Everyone-folder-in-OneDrive-for-Business-6bb02c91-fd0b-42ba-9457-3921cb6dc5b2?ui=en-US&rs=en-US&ad=US)

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-PublicCdnAllowedFileTypes

{{Fill PublicCdnAllowedFileTypes Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-PublicCdnEnabled

{{Fill PublicCdnEnabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-RequireAcceptingAccountMatchInvitedAccount

Ensures that an external user can only accept an external sharing invitation with an account matching the invited email address.

The parameter accepts two values: True or False.

True-User must accept this invitation with bob@contoso.com.

False- When a document is shared with an external user, bob@contoso.com, it can be accepted by any user with access to the invitation link in the original e-mail.

Administrators who desire increased control over external collaborators should consider enabling this feature.

This only applies to new external users accepting new sharing invitations.

The resource owner must share with an organizational or Microsoft account or the external user will be unable to access the resource.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-RequireAnonymousLinksExpireInDays

{{Fill RequireAnonymousLinksExpireInDays Description}}

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-SearchResolveExactEmailOrUPN

Removes the search capability from People Picker.

The valid values are:

Recently resolved names will still appear in the list.

False- Restores default search functionality.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-SharingAllowedDomainList

{{Fill SharingAllowedDomainList Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-SharingBlockedDomainList

{{Fill SharingBlockedDomainList Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-SharingCapability

Determines what level of sharing is available for the site. The possible values are: Disabled - external user sharing (share by email) and guest link sharing are both disabled, ExternalUserSharingOnly - external user sharing (share by email) is enabled, but guest link sharing is disabled, or ExternalUserAndGuestSharing - external user sharing (share by email) and guest link sharing are both enabled.

For more information about sharing, see Manage external sharing for your SharePoint online environment (http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/manage-external-sharing-for-your-sharepoint-online-environment-HA102849864.aspx).

Type:SharingCapabilities
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-SharingDomainRestrictionMode

{{Fill SharingDomainRestrictionMode Description}}

Type:SharingDomainRestrictionModes
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ShowAllUsersClaim

Enables the administrator to hide the All Users claim groups in People Picker. When users share an item with "All Users (x)", it is accessible to all organization members in the tenant's Azure Active Directory who have authenticated with variable. For example, "All Users (x)" shares with users who have used NTLM to authentication with SharePoint.

The valid values are:

True- The All Users claim groups are displayed in People Picker.

False- The All Users claim groups are hidden in People Picker.

The default value is True.

All Users (authenticated) is equivalent to the Everyone claim.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ShowEveryoneClaim

Enables the administrator to hide the Everyone claim in the People Picker. When users share an item with Everyone, it is accessible to all authenticated users in the tenant's Azure Active Directory, including any active external users who have previously accepted invitations.

The valid values are:

True- The Everyone claim group is displayed in People Picker.

Some SharePoint system resources such as templates and pages are required by be shared to Everyone and this type of sharing does not expose any user data or metadata.

The default value is True.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ShowEveryoneExceptExternalUsersClaim

Enables the administrator to hide the "Everyone except external users" claim in the People Picker. When users share an item with "Everyone except external users", it is accessible to all organization members in the tenant's Azure Active Directory, but not to any users who have previously accepted invitations.

The valid values are:

True - The Everyone except external users is displayed in People Picker.

False - The Everyone except external users claim is not visible in People Picker .

The default value is True.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ShowPeoplePickerSuggestionsForGuestUsers

{{Fill ShowPeoplePickerSuggestionsForGuestUsers Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-SignInAccelerationDomain

Specifies home realm discovery value to be sent to Azure Active Directory (AAD) during the user sign-in process.

When the organization uses a third-party identity provider, this prevents the user from seeing the Azure Active Directory Home Realm Discovery web page and ensures the user only sees their company's Identity Provider's portal. This value can also be used with Azure Active Directory Premium to customize the Azure Active Directory login page.

Acceleration will not occur on site collections that are shared externally.

This value should be configured with the login domain that is used by your company (that is, example@contoso.com).

If your company has multiple third-party identity providers, configuring the sign-in acceleration value will break sign-in for your organization.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-SpecialCharactersStateInFileFolderNames

{{Fill SpecialCharactersStateInFileFolderNames Description}}

Type:SpecialCharactersState
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-StartASiteFormUrl

Specifies URL of the form to load in the Start a Site dialog.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-UseFindPeopleInPeoplePicker

{{Fill UseFindPeopleInPeoplePicker Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-UsePersistentCookiesForExplorerView

Lets SharePoint issue a special cookie that will allow this feature to work even when "Keep Me Signed In" is not selected.

"Open with Explorer" requires persisted cookies to operate correctly. When the user does not select "Keep Me Signed in" at the time of sign-in, "Open with Explorer" will fail.

This special cookie expires after 30 minutes and cannot be cleared by closing the browser or signing out of SharePoint Online. To clear this cookie, the user must log out of their Windows session.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-UserVoiceForFeedbackEnabled

{{Fill UserVoiceForFeedbackEnabled Description}}

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online