Set-SPOSite
Sets or updates one or more properties' values for a site collection.
Syntax
None (Default)
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ParamSet1
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-Owner <String>]
[-Title <String>]
[-StorageQuota <Int64>]
[-StorageQuotaWarningLevel <Int64>]
[-ResourceQuota <Double>]
[-ResourceQuotaWarningLevel <Double>]
[-LocaleId <UInt32>]
[-AllowSelfServiceUpgrade <Boolean>]
[-NoWait]
[-LockState <String>]
[-DenyAddAndCustomizePages <Boolean>]
[-SharingCapability <SharingCapabilities>]
[-ShowPeoplePickerSuggestionsForGuestUsers <Boolean>]
[-StorageQuotaReset]
[-SandboxedCodeActivationCapability <SandboxedCodeActivationCapabilities>]
[-DisableCompanyWideSharingLinks <CompanyWideSharingLinksPolicy>]
[-SharingDomainRestrictionMode <SharingDomainRestrictionModes>]
[-SharingAllowedDomainList <String>]
[-SharingBlockedDomainList <String>]
[-ConditionalAccessPolicy <SPOConditionalAccessPolicyType>]
[-AllowDownloadingNonWebViewableFiles <Boolean>]
[-LimitedAccessFileType <SPOLimitedAccessFileType>]
[-AllowEditing <Boolean>]
[-ReadOnlyForUnmanagedDevices <Boolean>]
[-SensitivityLabel <String>]
[-DisableAppViews <AppViewsPolicy>]
[-DisableFlows <FlowsPolicy>]
[-MediaTranscription <MediaTranscriptionPolicyType>]
[-BlockDownloadPolicy <Boolean>]
[-ExcludedBlockDownloadGroupIds <Guid[]>]
[-ExcludeBlockDownloadPolicySiteOwners <Boolean>]
[-ReadOnlyForBlockDownloadPolicy <Boolean>]
[-ExcludeBlockDownloadSharePointGroups <String[]>]
[-AuthenticationContextName <String>]
[-AuthenticationContextAccessType <SPOAuthenticationContextPolicyAccessType>]
[-RestrictedToGeo <RestrictedToRegion>]
[-CommentsOnSitePagesDisabled <Boolean>]
[-UpdateUserTypeFromAzureAD]
[-SocialBarOnSitePagesDisabled <Boolean>]
[-HubSiteId <Guid>]
[-DefaultSharingLinkType <SharingLinkType>]
[-DefaultLinkPermission <SharingPermissionType>]
[-DefaultLinkToExistingAccess <Boolean>]
[-DefaultLinkToExistingAccessReset]
[-AnonymousLinkExpirationInDays <Int32>]
[-OverrideTenantAnonymousLinkExpirationPolicy <Boolean>]
[-ExternalUserExpirationInDays <Int32>]
[-OverrideTenantExternalUserExpirationPolicy <Boolean>]
[-InformationBarriersMode <String>]
[-BlockDownloadLinksFileType <BlockDownloadLinksFileTypes>]
[-OverrideBlockUserInfoVisibility <SiteUserInfoVisibilityPolicyValue>]
[-LoopDefaultSharingLinkScope <SharingScope>]
[-LoopDefaultSharingLinkRole <SharingRole>]
[-RequestFilesLinkEnabled <Boolean>]
[-RequestFilesLinkExpirationInDays <Int32>]
[-OverrideSharingCapability <Boolean>]
[-DefaultShareLinkScope <SharingScope>]
[-DefaultShareLinkRole <SharingRole>]
[-BlockGuestsAsSiteAdmin <SharingState>]
[-RestrictContentOrgWideSearch <Boolean>]
[-RestrictedContentDiscoveryforCopilotAndAgents <Boolean>]
[-RestrictedAccessControl <Boolean>]
[-RestrictedAccessControlGroups <Guid[]>]
[-ListsShowHeaderAndNavigation <Boolean>]
[-HidePeoplePreviewingFiles <Boolean>]
[-HidePeopleWhoHaveListsOpen <Boolean>]
[-AllowFileArchive <Boolean>]
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>]
[-DisableSiteBranding <Boolean>]
[-IsAuthoritative <Boolean>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ParamSet2
Set-SPOSite
[-Identity] <SpoSitePipeBind>
-EnablePWA <Boolean>
[-InformationBarriersMode <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ParamSet3
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-DisableSharingForNonOwners]
[-InformationBarriersMode <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ParamSet5
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-RemoveLabel]
[-InformationBarriersMode <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
AddInformationBarrierSegments
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-AddInformationSegment <Guid[]>]
[-InformationBarriersMode <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
RemoveInformationBarrierSegments
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-RemoveInformationSegment <Guid[]>]
[-InformationBarriersMode <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ClearLockDown
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-ClearSharingLockDown]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
AddRestrictedAccessControlGroups
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-AddRestrictedAccessControlGroups <Guid[]>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
RemoveRestrictedAccessControlGroups
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-RemoveRestrictedAccessControlGroups <Guid[]>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ClearRestrictedAccessControl
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-ClearRestrictedAccessControl]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
InheritVersionPolicyFromTenant
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-InheritVersionPolicyFromTenant]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
SetSiteFileVersionPolicy
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-EnableAutoExpirationVersionTrim <Boolean>]
[-ExpireVersionsAfterDays <Int32>]
[-MajorVersionLimit <Int32>]
[-MajorWithMinorVersionsLimit <Int32>]
[-ApplyToNewDocumentLibraries]
[-ApplyToExistingDocumentLibraries]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ClearGroupId
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-InformationBarriersMode <String>]
[-ClearGroupId]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
For any parameters that are passed in, the Set-SPOSite
cmdlet sets or updates the setting for the site collection identified by parameter Identity.
You must be a SharePoint Online administrator and be a site collection administrator to run the cmdlet.
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at Intro to SharePoint Online Management Shell.
For OneDrive for Business site collection, the only valid parameters are Identity, AllowDownloadingNonWebViewableFiles, AllowEditing, ConditionalAccessPolicy, DefaultLinkPermission, DefaultSharingLinkType, DisableCompanyWideSharingLinks, LimitedAccessFileType, LockState, Owner, SharingAllowedDomainList, SharingBlockedDomainList, SharingCapability, SharingDomainRestrictionMode, ShowPeoplePickerSuggestionsForGuestUsers, StorageQuota, and StorageWarningLevel.
For Groups site collection, the only valid parameters are Identity, AllowSelfServiceUpgrade, DefaultLinkPermission, DefaultSharingLinkType, DenyAddAndCustomizePages, DisableCompanyWideSharingLinks, DisableSharingForNonOwners, LockState, Owner, ResourceQuota, ResourceQuotaWarningLevel, SandboxedCodeActivationCapability, SensitivityLabel, SharingCapability, ShowPeoplePickerSuggestionsForGuestUsers, SocialBarOnSitePagesDisabled, StorageQuota, StorageQuotaReset, and StorageQuotaWarningLevel.
Examples
Example 1
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner joe.healy@contoso.com -NoWait
Example 1 updates the owner of site collection https://contoso.sharepoint.com/sites/site1 to the person whose email address is joe.healy@contoso.com. This cmdlet is executed immediately without delay.
Example 2
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -StorageQuota 1024
Example 2 updates the settings of site collection https://contoso.sharepoint.com/sites/site1. The storage quota is updated to 1024 megabytes (1 GB).
Example 3
Set-SPOSite -Identity https://contoso.sharepoint.com -StorageQuota 1500 -StorageQuotaWarningLevel 1400
This example updates the settings of site collection https://contoso.sharepoint.com. The storage quota is updated to 1500 megabytes and the storage quota warning level is updated to 1400 megabytes.
Example 4
Set-SPOSite -Identity https://contoso.sharepoint.com -DisableSharingForNonOwners
Example 4 prevents non-owners of a site from inviting new users to the site.
Example 5
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/groupname -StorageQuota 3000 -StorageQuotaWarningLevel 2000
This example sets the quota for the site.
Note
If Site Collection Storage Management is enabled for the tenant, you will not be able to set quota and will have a generic error returned. To workaround this issue, set the site collection storage management to "manual" temporarily, set your quotas and then set the site collection storage management setting back to its original setting.
Example 6
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnablePWA $true
Example 6 enables the site "site1" to create Project Web Applications (PWA).
Example 7
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -SharingCapability ExternalUserSharingOnly
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -SharingDomainRestrictionMode AllowList -SharingAllowedDomainList "contoso.com"
Example 7 sets the Sharing Capability to allow external users who accept sharing invitations and sign in as authenticated users, and then specifies an email ___domain that is allowed for sharing with the external collaborators.
Example 8
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/research -AddInformationSegment a17efb47-e3c9-4d85-a188-1cd59c83de32
This example adds InformationSegment 'a17efb47-e3c9-4d85-a188-1cd59c83de32' to the site.
Example 9
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/research -RemoveInformationSegment a17efb47-e3c9-4d85-a188-1cd59c83de32
In example, InformationSegment 'a17efb47-e3c9-4d85-a188-1cd59c83de32' is removed from the site.
Example 10
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/research -ConditionalAccessPolicy AuthenticationContext -AuthenticationContextName "MFA"
In this example, an authentication context called MFA is attached to the site.
Example 11
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $true
Example 11 sets automatic version history limits at site level. Automatic setting will be applied to all new document libraries created in the site and a background request will be created to asynchronously process the update on existing document libraries that have versioning enabled.
EXAMPLE 12
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -MajorWithMinorVersionsLimit 20 -ExpireVersionsAfterDays 30
Example 12 sets manual version history limits at site level by limiting the number of versions and the time (in days) versions are kept. The new document libraries will use this version setting. Also it creates a job to set this manual version setting for existing document libraries that enabled versioning.
EXAMPLE 13
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -MajorWithMinorVersionsLimit 20 -ExpireVersionsAfterDays 0
Example 13 sets manual version history limits at site level by limiting the number of versions with no time limits. The new document libraries will use this version setting. Also it creates a job to set this manual version setting for existing document libraries that enabled versioning.
Example 14
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $true -ApplyToNewDocumentLibraries
Example 14 sets automatic version history limits at site level. The new document libraries will use this version setting.
EXAMPLE 15
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 30 -ApplyToNewDocumentLibraries
Example 15 sets manual version history limits at site level by limiting the number of versions and the time (in days) versions are kept. The new document libraries will use this version setting.
EXAMPLE 16
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 0 -ApplyToNewDocumentLibraries
Example 16 sets manual version history limits at site level by limiting the number of versions with no time limits. The new document libraries will use this version setting.
Example 17
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries
Example 17 creates a job to set automatic version history limits for existing document libraries that enabled versioning.
EXAMPLE 18
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -MajorWithMinorVersionsLimit 20 -ExpireVersionsAfterDays 30 -ApplyToExistingDocumentLibraries
Example 18 creates a job to set manual version history limits that limits the number of versions and the time (in days) versions are kept for existing document libraries that enabled versioning.
EXAMPLE 19
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -MajorWithMinorVersionsLimit 20 -ExpireVersionsAfterDays 0 -ApplyToExistingDocumentLibraries
Example 19 creates a request to set manual version history limits that limits the number of versions with no time limits for existing document libraries that enabled versioning.
EXAMPLE 20
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -InheritVersionPolicyFromTenant
Example 20 clears the file version setting at site level. The new document libraries will use the Tenant Level setting. It won't impact the existing document libraries.
Parameters
-AddInformationSegment
This parameter allows you to add a segment to a SharePoint site. This parameter is only applicable for tenants who have enabled Microsoft 365 Information barriers capability. Please read https://learn.microsoft.com/sharepoint/information-barriers documentation to understand Information barriers in SharePoint Online.
Note: This parameter is available only in SharePoint Online Management Shell Version 16.0.19927.12000 or later.
Parameter properties
Type: | System.Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
AddInformationBarrierSegments
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AddRestrictedAccessControlGroups
Applicable: SharePoint Online
Specifies the IDs of groups to be added to an access restriction policy and gain access.
Parameter properties
Type: | System.Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
AddRestrictedAccessControlGroups
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AllowDownloadingNonWebViewableFiles
Applicable: SharePoint Online
Specifies if non web viewable files can be downloaded.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AllowEditing
Applicable: SharePoint Online
Prevents users from editing Office files in the browser and copying and pasting Office file contents out of the browser window.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AllowFileArchive
Applicable: SharePoint Online
This setting enables or disables the file archive feature for a SharePoint site. If this parameter is passed as true for a site and Microsoft 365 Archive is enabled at the tenant-level, then the site will allow file archive.
PARAMVALUE: False | True
If set to True, the feature will be enable. Feature is disabled by default.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AllowSelfServiceUpgrade
Applicable: SharePoint Online
Determines whether site collection administrators can upgrade their site collections.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled
Applicable: SharePoint Online
Enables or disables web property bag updates. When AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled
is set to $true
, the web property bag can be updated even if the Add And Customize Pages right is denied on the site collection.
PARAMVALUE: True | False
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AnonymousLinkExpirationInDays
Applicable: SharePoint Online
Specifies all anonymous/anyone links that have been created (or will be created) will expire after the set number of days. Only applies if OverrideTenantAnonymousLinkExpirationPolicy is set to true.
The valid number should be between 1 and 730. To remove the expiration requirement, set the value to zero (0).
Parameter properties
Type: | System.Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ApplyToExistingDocumentLibraries
Applicable: SharePoint Online
Create a job to apply the version history limits setting to existing document libraries.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetSiteFileVersionPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ApplyToNewDocumentLibraries
Applicable: SharePoint Online
Apply the version history limits setting to new document libraries.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetSiteFileVersionPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AuthenticationContextAccessType
Applicable: SharePoint Online
Controls whether Authentication Context Limited Access is enabled for a site.
The valid values are:
- AllowLimitedAccess
- BlockAccess
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SPOAuthenticationContextPolicyAccessType |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AuthenticationContextName
Applicable: SharePoint Online
The conditional access authentication context name.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-BlockDownloadLinksFileType
Applicable: SharePoint Online
The valid values are:
- WebPreviewableFiles
- ServerRenderedFilesOnly
Note: ServerRendered (Office Only) and WebPreviewable (All supported files).
The site's value is compared with the tenant level setting and the stricter one wins. For example, if the tenant is set to ServerRenderedFilesOnly then that will be used even if the site is set to WebPreviewableFiles.
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.BlockDownloadLinksFileTypes |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-BlockDownloadPolicy
Applicable: SharePoint Online
As a SharePoint administrator in Microsoft 365, you can block the download of files from SharePoint sites or OneDrive. This feature does not need Microsoft Entra Conditional Access policies. This feature can be set for individual sites but not at the organization level.
Blocking the download of files allows users to remain productive while addressing the risk of accidental data loss. Users have browser-only access with no ability to download, print, or sync files. They also won't be able to access content through apps, including the Microsoft Office desktop apps. When web access is limited, users will see the following message at the top of sites: "Your organization doesn't allow you to download, print, or sync from this site. For help contact your IT department." Read the full documentation for advanced capabilities at Block download policy for SharePoint sites and OneDrive.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-BlockGuestsAsSiteAdmin
Applicable: SharePoint Online
Whether to block guests as site admins.
Parameter properties
Type: | Microsoft.SharePoint.Client.SharingState |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ClearGroupId
This parameter allows you to remove the assigned Microsoft 365 group ID on a site, when the group is permanently deleted.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ClearGroupId
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ClearRestrictedAccessControl
Applicable: SharePoint Online
Clears the list of groups that are given access via an access restriction policy.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ClearRestrictedAccessControl
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ClearSharingLockDown
Applicable: SharePoint Online
Whether to clear the sharing lockdown for the site.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ClearLockDown
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-CommentsOnSitePagesDisabled
Applicable: SharePoint Online
Use this parameter to disable Comments section on Site Pages. The parameter can't be used for Groups Site Collections.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ConditionalAccessPolicy
Applicable: SharePoint Online
Please read Control access from unmanaged devices documentation here to understand Conditional Access Policy usage in SharePoint Online.
Possible values:
- AllowFullAccess: Allows full access from desktop apps, mobile apps, and the web.
- AllowLimitedAccess: Allows limited, web-only access.
- BlockAccess: Blocks Access.
- AuthenticationContext: Assign a Microsoft Entra authentication context. Must add the AuthenticationContextName. Please read Configure authentication contexts.
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SPOConditionalAccessPolicyType |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Confirm
Applicable: SharePoint Online
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultLinkPermission
Applicable: SharePoint Online
The default link permission for the site collection. To be replaced by DefaultShareLinkRole.
PARAMVALUE: None | View | Edit
- None - Respect the organization default link permission
- View - Sets the default link permission for the site to "view" permissions
- Edit - Sets the default link permission for the site to "edit" permissions
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SharingPermissionType |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultLinkToExistingAccess
Applicable: SharePoint Online
When set to TRUE, the DefaultSharingLinkType will be overriden and the default sharing link will a People with Existing Access link (which does not modify permissions). When set to FALSE (the default), the DefaultSharingLinkType parameter controls the default sharing link type.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultLinkToExistingAccessReset
Applicable: SharePoint Online
Whether to reset the default link to existing access to the site.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultShareLinkRole
Applicable: SharePoint Online
The default share link role for the site collection. It replaces DefaultLinkPermission
.
The valid values are:
- Edit
- None
- RestrictedView
- Review
- View
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SharingRole |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultShareLinkScope
Applicable: SharePoint Online
The default share link scope on the site. It replaces DefaultSharingLinkType
.
The valid values are:
- Anyone
- Organization
- SpecificPeople
- Uninitialized
Parameter properties
Type: | Microsoft.SharePoint.Client.Sharing.SharingScope |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultSharingLinkType
Applicable: SharePoint Online
The default link type for the site collection. To be replaced by DefaultShareLinkScope.
PARAMVALUE: None | AnonymousAccess | Internal | Direct
- None - Respect the organization default sharing link type
- AnonymousAccess - Sets the default sharing link for this site to an Anonymous Access or Anyone link
- Internal - Sets the default sharing link for this site to the "organization" link or company shareable link
- Direct - Sets the default sharing link for this site to the "Specific people" link
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SharingLinkType |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DenyAddAndCustomizePages
Applicable: SharePoint Online
Determines whether the Add And Customize Pages right is denied on the site collection. For more information about permission levels, see User permissions and permission levels in SharePoint.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisableAppViews
Applicable: SharePoint Online
Note: This parameter has been retired and no longer functions.
Disables the Power Apps button. Possible values:
- Disabled
- NotDisabled
- Unknown (not settable)
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.AppViewsPolicy |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisableCompanyWideSharingLinks
Applicable: SharePoint Online
Disables People in your organization links. For more information, see People in your organization sharing links.
Possible values
- Disabled
- NotDisabled
- Unknown (not settable)
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.CompanyWideSharingLinksPolicy |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisableFlows
Applicable: SharePoint Online
Note: This parameter has been retired and no longer functions.
Disables the Power Automate button. Possible values
- Disabled
- NotDisabled
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.FlowsPolicy |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisableSharingForNonOwners
Applicable: SharePoint Online
This parameter prevents non-owners from inviting new users to the site.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet3
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisableSiteBranding
Applicable: SharePoint Online
Enables or disables site branding. When DisableSiteBranding
is set to $true
, the site branding is disabled on the site collection.
PARAMVALUE: True | False
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-EnableAutoExpirationVersionTrim
Applicable: SharePoint Online
SharePoint Administrators can set site-level version history limit settings that universally apply to new versions created on all new document libraries created on the site. Also can create request to set the version setting for existing libraries that enabled versioning.
When version history limits are managed automatically, SharePoint employs an algorithm behind the scenes that deletes (thins out) intermittent older versions that are least likely to be needed, while preserving sufficient high-value versions - more versions in the recent past and fewer farther back in time - in case restores are required.
The valid values are:
- True - Version history limits for new versions created on new/existing document libraries in the site will be managed automatically.
- False - Version history limits for new Versions created on new/existing document libraries in the site will be managed manually by setting limits to the number of major versions (
MajorVersionLimit
), number of major with minor versions (MajorWithMinorVersionsLimit
) and time set (ExpireVersionsAfterDays
). Review the documentation of both parameters to manage your organization's version limits manually.
Note
When version history limits are managed manually (EnableAutoExpirationVersionTrim $false
), MajorVersionLimit
and ExpireVersionsAfterDays
are both required parameters, MajorWithMinorVersionsLimit
is also required for creating request for setting existing document libraries with the following acceptable values:
a. MajorVersionLimit
accepts values from 1 through 50,000 (inclusive).
b. MajorWithMinorVersionsLimit
accepts values from 0 through 50,000 (inclusive).
c. ExpireVersionsAfterDays
accepts values of 0 to Never Expire or values >= 30 to delete versions that exceed that time period.
When version history limits are managed automatically (EnableAutoExpirationVersionTrim $true
), setting MajorVersionLimit
or ExpireVersionsAfterDays
will result in an error as the count limits are set by the service.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetSiteFileVersionPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-EnablePWA
Applicable: SharePoint Online
Determines whether site can include Project Web App. For more information about Project Web App, see Plan SharePoint groups in Project Server.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet2
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ExcludeBlockDownloadPolicySiteOwners
Applicable: SharePoint Online
Controls if site owners are excluded from block download policy.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ExcludeBlockDownloadSharePointGroups
Applicable: SharePoint Online
Specifies the groups excluded from the block download policy.
Parameter properties
Type: | System.String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ExcludedBlockDownloadGroupIds
Applicable: SharePoint Online
Exempts users from specified groups from the block download policy and they can fully download any content for the site.
Parameter properties
Type: | System.Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ExpireVersionsAfterDays
Applicable: SharePoint Online
When version history limits are managed manually (EnableAutoExpirationVersionTrim $false
), admins will need to set the limits to the number of major versions (MajorVersionLimit
), the number of major with minor versions (MajorWithMinorVersionsLimit
) and the time period the versions are stored (ExpireVersionsAfterDays
). Please check the description of EnableAutoExpirationVersionTrim
for more details.
PARAMVALUE: Int32
Parameter properties
Type: | System.Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetSiteFileVersionPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ExternalUserExpirationInDays
Applicable: SharePoint Online
Specifies all external user expiration which will expire after the set number of days. Only applies if OverrideTenantExternalUserExpirationPolicy is set to true.
The maximum value is 730. To remove the expiration requirement, set the value to zero (0).
Parameter properties
Type: | System.Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-HidePeoplePreviewingFiles
Applicable: SharePoint Online
This setting disables the feature in OneDrive and SharePoint file previewing that displays the presence of other users on the file. It does not affect any experiences outside of the previewer.
PARAMVALUE: False | True
If set to True, the presence of other users on the file will no longer be displayed.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-HidePeopleWhoHaveListsOpen
Applicable: SharePoint Online
This setting disables the feature in Microsoft Lists that displays the presence of other users on the list and its items when they are viewing.
PARAMVALUE: False | True
If set to True, the presence of other users on the list and its items will no longer be displayed. List presence is enabled by default.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-HubSiteId
Applicable: SharePoint Online
Sets the hub site for a specified SharePoint site.
Parameter properties
Type: | System.Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Identity
Applicable: SharePoint Online
Specifies the URL of the site collection to update.
Parameter properties
Type: | SpoSitePipeBind |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-InformationBarriersMode
Applicable: SharePoint Online
Specifies the information barrier mode.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-InheritVersionPolicyFromTenant
Applicable: SharePoint Online
Clear the file version setting at site level. The new document libraries will use the Tenant Level setting. It won't impact the existing document libraries.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
InheritVersionPolicyFromTenant
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-IsAuthoritative
Applicable: SharePoint Online
When an admin with a Copilot license marks a site as authoritative, it signals to Microsoft Search, Microsoft 365 Copilot, and other AI agents that the content is official, trusted, and verified. This designation helps improve content discoverability and increases user confidence in AI-generated responses.
PARAMVALUE: True | False
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LimitedAccessFileType
Applicable: SharePoint Online
The following parameters can be used with -ConditionalAccessPolicy AllowLimitedAccess for both the organization-wide setting and the site-level setting.
OfficeOnlineFilesOnly: Allows users to preview only Office files in the browser. This option increases security but may be a barrier to user productivity.
LimitedAccessFileType WebPreviewableFiles (default): Allows users to preview Office files and other file types (such as PDF files and images) in the browser. Note that the contents of file types other than Office files are handled in the browser. This option optimizes for user productivity but offers less security for files that aren't Office files.
LimitedAccessFileType OtherFiles: Allows users to download files that can't be previewed, such as .zip and .exe. This option offers less security.
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SPOLimitedAccessFileType |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ListsShowHeaderAndNavigation
Applicable: SharePoint Online
Whether users see the full SharePoint chrome when they open a list.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LocaleId
Specifies the language of this site collection. For more information, see Locale IDs Assigned by Microsoft (https://go.microsoft.com/fwlink/p/?LinkId=242911) (https://go.microsoft.com/fwlink/p/?LinkId=242911).
Parameter properties
Type: | System.UInt32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LockState
Applicable: SharePoint Online
Sets the lock state on a site.
Valid values are: NoAccess, ReadOnly and Unlock.
When the lock state of a site is ReadOnly, a message will appear on the site stating that the site is under maintenance and it is read-only.
When the lock state of a site is NoAccess, all traffic to the site will be blocked.
If parameter NoAccessRedirectUrl in the Set-SPOTenant
cmdlet is set, traffic to sites that have a lock state NoAccess will be redirected to that URL.
If parameter NoAccessRedirectUrl is not set, a 403 error will be returned.
It isn't possible to set the lock state on the root site collection.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LoopDefaultSharingLinkRole
Applicable: SharePoint Online
Gets or sets default share link role for fluid on the site.
The valid values are:
- Edit
- None
- RestrictedView
- Review
- View
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SharingRole |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LoopDefaultSharingLinkScope
Applicable: SharePoint Online
Gets or sets default share link scope for fluid on the site.
The valid values are:
- Anyone
- Organization
- SpecificPeople
- Uninitialized
Parameter properties
Type: | Microsoft.SharePoint.Client.Sharing.SharingScope |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-MajorVersionLimit
Applicable: SharePoint Online
When version history limits are managed manually (EnableAutoExpirationVersionTrim $false
), admins will need to set the limits to the number of major versions (MajorVersionLimit
) and the time period the versions are stored (ExpireVersionsAfterDays
). Please check the description of EnableAutoExpirationVersionTrim
for more details.
PARAMVALUE: Int32
Parameter properties
Type: | System.Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetSiteFileVersionPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-MajorWithMinorVersionsLimit
Applicable: SharePoint Online
When version history limits are managed manually (EnableAutoExpirationVersionTrim $false
), admins will need to set the limits to the number of major versions (MajorVersionLimit
), the number of major with minor versions (MajorWithMinorVersionsLimit
) and the time period the versions are stored (ExpireVersionsAfterDays
). Please check the description of EnableAutoExpirationVersionTrim
for more details.
PARAMVALUE: Int32
Parameter properties
Type: | System.Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetSiteFileVersionPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-MediaTranscription
Applicable: SharePoint Online
When the feature is enabled, videos can have transcripts generated on demand or generated automatically in certain scenarios. This is the default because the policy is default on. If a video owner decides they don't want the transcript, they can always hide or delete it from that video. Possible values:
- Enabled
- Disabled
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.MediaTranscriptionPolicyType |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-NoWait
Applicable: SharePoint Online
Specifies to continue executing script immediately.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OverrideBlockUserInfoVisibility
Applicable: SharePoint Online
Choose whether to override the Block User Info Visibility policy on this site.
PARAMVALUE:
- OrganizationDefault (default) - Respect the organization-level Block User Info Visibility policy.
- ApplyToNoUsers – No users are prevented from accessing User Info when they have Limited Access permission only on the site.
- ApplyToAllUsers – All users (internal or external) are prevented from accessing User Info if they have Limited Access permission only on the site.
- ApplyToGuestAndExternalUsers – Only external or guest users are prevented from accessing User Info if they have Limited Access permission only on the site.
- ApplyToInternalUsers – Only internal users are prevented from accessing User Info if they have Limited Access permission only on the site.
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.SiteUserInfoVisibilityPolicyValue |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OverrideSharingCapability
Applicable: SharePoint Online
Determines whether it should override the sharing capability on its partition. For example, if the tenant sharing capability is ExternalUserAndGuestSharing
, the core partition sharing capability is Disabled
, and the sharing capability defined on the site collection is ExternalUserAndGuestSharing
, the effective site sharing capability should be Disabled
(the most restrictive one among tenant, partition, and site collecction) if OverrideSharingCapability
is false
. If OverrideSharingCapability
is true
, it skips checking partition sharing capability and the effective site sharing capability should be ExternalUserAndGuestSharing
.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OverrideTenantAnonymousLinkExpirationPolicy
Applicable: SharePoint Online
Choose whether to override the anonymous or anyone link expiration policy on this site.
PARAMVALUE: None | False | True
- None - Respect the organization-level policy for anonymous or anyone link expiration
- False - Respect the organization-level policy for anonymous or anyone link expiration
- True - Override the organization-level policy for anonymous or anyone link expiration (can be more or less restrictive)
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OverrideTenantExternalUserExpirationPolicy
Applicable: SharePoint Online
Choose whether to override the external user expiration policy on this site.
Possible values:
- None: Respect the organization-level policy for external user expiration.
- False: Respect the organization-level policy for external user expiration.
- True: Override the organization-level policy for external user expiration (can be more or less restrictive).
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Owner
Applicable: SharePoint Online
Specifies the owner of the site collection. Changing the Owner of a OneDrive is not supported and causes many experiences to break.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ReadOnlyForBlockDownloadPolicy
Applicable: SharePoint Online
Controls if read-only should be enabled for block download policy.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ReadOnlyForUnmanagedDevices
Controls whether unmanaged devices have read-only access.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RemoveInformationSegment
This parameter allows you to remove a segment from a SharePoint site. This parameter is only applicable for tenants who have enabled Microsoft 365 Information barriers capability. Please read https://learn.microsoft.com/sharepoint/information-barriers documentation to understand Information barriers with SharePoint Online.
Note: This parameter is available only in SharePoint Online Management Shell Version 16.0.19927.12000 or later.
Parameter properties
Type: | System.Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
RemoveInformationBarrierSegments
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RemoveLabel
This parameter allows you to remove the assigned sensitivity label on a site.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet5
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RemoveRestrictedAccessControlGroups
Applicable: SharePoint Online
Specifies the IDs of groups to be removed from access restriction policy and lose access.
Parameter properties
Type: | System.Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
RemoveRestrictedAccessControlGroups
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RequestFilesLinkEnabled
Applicable: SharePoint Online
Enables or disables the Request Files link on the site.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RequestFilesLinkExpirationInDays
Applicable: SharePoint Online
Specifies the number of days before a Request Files link expires for the site.
The value can be from 0 to 730 days.
Parameter properties
Type: | System.Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResourceQuota
Specifies the resource quota in megabytes of the site collection. The default value is 0. For more information, see Resource Usage Limits on Sandboxed Solutions in SharePoint 2010 (https://msdn.microsoft.com/en-us/library/gg615462.aspx) (https://msdn.microsoft.com/en-us/library/gg615462.aspx).
Parameter properties
Type: | System.Double |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResourceQuotaWarningLevel
Applicable: SharePoint Online
Specifies the warning level in megabytes of the site collection to warn the site collection administrator that the site is approaching the resource quota.
Parameter properties
Type: | System.Double |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RestrictContentOrgWideSearch
Applicable: SharePoint Online
Controls whether org-wide content search is enabled for a site.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RestrictedAccessControl
Applicable: SharePoint Online
Sets access restriction policy by group membership.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RestrictedAccessControlGroups
Applicable: SharePoint Online
Specifies the IDs of groups that have access under an access restriction policy.
Parameter properties
Type: | System.Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RestrictedContentDiscoveryforCopilotAndAgents
Sets or updates the site setting to host Agents by activating or deactivating the Restricted Content Discovery (RCD) for Agents. Currently under private preview.
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RestrictedToGeo
Applicable: SharePoint Online
PARAMVALUE: NoRestriction | BlockMoveOnly | BlockFull | Unknown
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.RestrictedToRegion |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SandboxedCodeActivationCapability
Applicable: SharePoint Online
PARAMVALUE: Unknown | Check | Disabled | Enabled
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.SandboxedCodeActivationCapabilities |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SensitivityLabel
Applicable: SharePoint Online
Used to specify the unique identifier (GUID) of the SensitivityLabel.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SharingAllowedDomainList
Applicable: SharePoint Online
Specifies a list of email domains that are allowed for sharing with the external collaborators. Use the space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com".
For additional information about how to restrict a ___domain sharing, see Restrict sharing of SharePoint and OneDrive content by ___domain.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SharingBlockedDomainList
Applicable: SharePoint Online
Specifies a list of email domains that are blocked or prohibited for sharing with the external collaborators. Use space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com".
For additional information about how to restrict a ___domain sharing, see Restrict sharing of SharePoint and OneDrive content by ___domain.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SharingCapability
Applicable: SharePoint Online
Determines what level of sharing is available for the site.
The valid values are:
- Disabled - Sharing outside your organization is disabled.
- ExistingExternalUserSharingOnly - Allow sharing only with the external users that already exist in your organization's directory.
- ExternalUserSharingOnly - External user sharing (share by email) is enabled, but anonymous link sharing is disabled.
- ExternalUserAndGuestSharing - External user sharing (share by email) and anonymous link sharing are both enabled.
For more information about sharing, see Turn external sharing on or off for SharePoint Online (/sharepoint/turn-external-sharing-on-or-off).
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SharingDomainRestrictionMode
Applicable: SharePoint Online
Specifies the sharing mode for external domains.
Possible values are:
- None - Do not restrict sharing by ___domain
- AllowList - Sharing is allowed only with external users that have account on domains specified with -SharingAllowedDomainList
- BlockList - Sharing is allowed with external users in all domains except in domains specified with -SharingBlockedDomainList
For additional information about how to restrict a ___domain sharing, see Restrict sharing of SharePoint and OneDrive content by ___domain.
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantManagement.SharingDomainRestrictionModes |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ShowPeoplePickerSuggestionsForGuestUsers
Applicable: SharePoint Online
To enable the option to search for existing guest users at site collection level, set this parameter to $true.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SocialBarOnSitePagesDisabled
Applicable: SharePoint Online
Disables or enables the Social Bar for Site Collection.
The Social Bar will appear on all modern SharePoint pages with the exception of the home page of a site. It will give users the ability to like a page, see the number of views, likes, and comments on a page, and see the people who have liked a page.
PARAMVALUE: False | True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-StorageQuota
Applicable: SharePoint Online
Specifies the storage quota in megabytes of the site collection.
Parameter properties
Type: | System.Int64 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-StorageQuotaReset
Applicable: SharePoint Online
Resets the OneDrive for Business storage quota to the tenant's new default storage space.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-StorageQuotaWarningLevel
Applicable: SharePoint Online
Specifies the warning level in megabytes of the site collection to warn the site collection administrator that the site is approaching the storage quota.
Parameter properties
Type: | System.Int64 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Title
Applicable: SharePoint Online
Specifies the title of the site collection.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-UpdateUserTypeFromAzureAD
Applicable: SharePoint Online
Whether to update user types for all users in the site to match what's in Entra.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParamSet1
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Applicable: SharePoint Online
The WhatIf switch doesn't work on this cmdlet.
Parameter properties
Type: | System.Management.Automation.SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.