From ade1ece54e5c83eb2ae5e5378430c7938bb64560 Mon Sep 17 00:00:00 2001 From: HectorRMota Date: Mon, 17 Nov 2025 09:45:19 -0800 Subject: [PATCH 1/2] Update Set-SPOTenant to add FileLevelArchive parameters. Added AllowFileArchive and AllowFileArchiveOnNewSitesByDefault to Set-SPOTenant. --- .../Set-SPOTenant.md | 61 +++++++++++++++++-- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md index 466eac85e..145576ca2 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md @@ -139,7 +139,8 @@ Set-SPOTenant [-MinCompatibilityLevel ] [-MaxCompatibilityLevel ] [-OpticalCharacterRecognitionSelectedSitesListOperation ] [-DefaultContentCenterSite ] [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled ] [-EnforceRequestDigest ] - [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] [] + [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] + [-AllowFileArchive ] [-AllowFileArchiveByDefault ] [] ``` ### ParameterSetContentTypeSyncSiteTemplatesList @@ -264,7 +265,8 @@ Set-SPOTenant [-MinCompatibilityLevel ] [-MaxCompatibilityLevel ] [-OpticalCharacterRecognitionSelectedSitesListOperation ] [-DefaultContentCenterSite ] [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled ] [-EnforceRequestDigest ] - [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] [] + [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] + [-AllowFileArchive ] [-AllowFileArchiveByDefault ] [] ``` ### ParamSetMultipleSites @@ -390,7 +392,8 @@ Set-SPOTenant [-MinCompatibilityLevel ] [-MaxCompatibilityLevel ] [-OpticalCharacterRecognitionSelectedSitesListOperation ] [-DefaultContentCenterSite ] [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled ] [-EnforceRequestDigest ] - [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] [] + [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] + [-AllowFileArchive ] [-AllowFileArchiveByDefault ] [] ``` ### InformationBarrier @@ -514,7 +517,8 @@ Set-SPOTenant [-MinCompatibilityLevel ] [-MaxCompatibilityLevel ] [-OpticalCharacterRecognitionSelectedSitesListOperation ] [-DefaultContentCenterSite ] [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled ] [-EnforceRequestDigest ] - [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] [] + [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] + [-AllowFileArchive ] [-AllowFileArchiveByDefault ] [] ``` ### ParameterSetNameRestrictExternalSharing @@ -639,7 +643,8 @@ Set-SPOTenant [-MinCompatibilityLevel ] [-MaxCompatibilityLevel ] [-DefaultContentCenterSite ] [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled ] [-EnforceRequestDigest ] [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] - -RestrictExternalSharing [-AddAppIdToList] [-RemoveAppIdFromList] [] + -RestrictExternalSharing [-AddAppIdToList] [-RemoveAppIdFromList] + [-AllowFileArchive ] [-AllowFileArchiveByDefault ] [] ``` ## DESCRIPTION @@ -1129,6 +1134,52 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -AllowFileArchive + +> Applicable: SharePoint Online + +Controls whether file-level archiving is allowed at the tenant level. This setting can be overridden for specific sites by the site-level flag of the same name and has no effect unless M365 Archive is enabled for your organization. + +The valid values are: + +- True (default) - Allows users to manually archive files on sites where file-level archiving is also enabled. Manual archiving is limited to internal users with write access to the file. +- False - Blocks manual archiving for all files, regardless of the site-level setting. Admin-defined policies can still archive files automatically. + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: True +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AllowFileArchiveOnNewSitesByDefault + +> Applicable: SharePoint Online + +Specifies the default value of the AllowFileArchive property for newly created SharePoint sites. This determines whether new sites allow file-level archiving by default. M365 Archive and the tenant-level AllowFileArchive setting must both be enabled for manual archiving to work when this property is set to True. + +The valid values are: + +- True (default) - Sets AllowFileArchive to True for all newly provisioned sites. M365 Archive and the tenant-level AllowFileArchive setting must both be enabled for manual archiving to work on future provisioned sites. +- False - Sets AllowFileArchive to False for all newly provisioned sites. + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: True +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -AllowGuestUserShareToUsersNotInSiteCollection > Applicable: SharePoint Online From 5344aee133ef35817d57b3b35ed0a225742cacbc Mon Sep 17 00:00:00 2001 From: HectorRMota Date: Mon, 17 Nov 2025 10:17:51 -0800 Subject: [PATCH 2/2] Update documentation for AllowFileArchive settings Expand M365 Archive to Microsoft 365 Archive and added backticks to parameter reference in text --- .../Set-SPOTenant.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md index 145576ca2..219b5a1c3 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md @@ -1138,7 +1138,7 @@ Accept wildcard characters: False > Applicable: SharePoint Online -Controls whether file-level archiving is allowed at the tenant level. This setting can be overridden for specific sites by the site-level flag of the same name and has no effect unless M365 Archive is enabled for your organization. +Controls whether file-level archiving is allowed at the tenant level. This setting can be overridden for specific sites by the site-level flag of the same name and has no effect unless Microsoft 365 Archive is enabled for your organization. The valid values are: @@ -1161,12 +1161,12 @@ Accept wildcard characters: False > Applicable: SharePoint Online -Specifies the default value of the AllowFileArchive property for newly created SharePoint sites. This determines whether new sites allow file-level archiving by default. M365 Archive and the tenant-level AllowFileArchive setting must both be enabled for manual archiving to work when this property is set to True. +Specifies the default value of the `AllowFileArchive` property for newly created SharePoint sites. This determines whether new sites allow file-level archiving by default. Microsoft 365 Archive and the tenant-level `AllowFileArchive` setting must both be enabled for manual archiving to work when this property is set to True. The valid values are: -- True (default) - Sets AllowFileArchive to True for all newly provisioned sites. M365 Archive and the tenant-level AllowFileArchive setting must both be enabled for manual archiving to work on future provisioned sites. -- False - Sets AllowFileArchive to False for all newly provisioned sites. +- True (default) - Sets `AllowFileArchive` to True for all newly provisioned sites. Microsoft 365 Archive and the tenant-level `AllowFileArchive` setting must both be enabled for manual archiving to work on future provisioned sites. +- False - Sets `AllowFileArchive` to False for all newly provisioned sites. ```yaml Type: Boolean