Skip to content

Commit 20db695

Browse files
Merge pull request #1079 from HectorRMota/patch-2
Update Set-SPOTenant to add FileLevelArchive parameters.
2 parents 33954aa + ac87d30 commit 20db695

File tree

1 file changed

+56
-5
lines changed

1 file changed

+56
-5
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
139139
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
140140
[-DefaultContentCenterSite <String>]
141141
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-EnforceRequestDigest <Boolean>]
142-
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>] [<CommonParameters>]
142+
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>]
143+
[-AllowFileArchive <Boolean>] [-AllowFileArchiveByDefault <Boolean>] [<CommonParameters>]
143144
```
144145

145146
### ParameterSetContentTypeSyncSiteTemplatesList
@@ -264,7 +265,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
264265
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
265266
[-DefaultContentCenterSite <String>]
266267
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-EnforceRequestDigest <Boolean>]
267-
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>] [<CommonParameters>]
268+
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>]
269+
[-AllowFileArchive <Boolean>] [-AllowFileArchiveByDefault <Boolean>] [<CommonParameters>]
268270
```
269271

270272
### ParamSetMultipleSites
@@ -390,7 +392,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
390392
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
391393
[-DefaultContentCenterSite <String>]
392394
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-EnforceRequestDigest <Boolean>]
393-
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>] [<CommonParameters>]
395+
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>]
396+
[-AllowFileArchive <Boolean>] [-AllowFileArchiveByDefault <Boolean>] [<CommonParameters>]
394397
```
395398

396399
### InformationBarrier
@@ -514,7 +517,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
514517
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
515518
[-DefaultContentCenterSite <String>]
516519
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-EnforceRequestDigest <Boolean>]
517-
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>] [<CommonParameters>]
520+
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>]
521+
[-AllowFileArchive <Boolean>] [-AllowFileArchiveByDefault <Boolean>] [<CommonParameters>]
518522
```
519523

520524
### ParameterSetNameRestrictExternalSharing
@@ -639,7 +643,8 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
639643
[-DefaultContentCenterSite <String>]
640644
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-EnforceRequestDigest <Boolean>]
641645
[-RestrictResourceAccountAccess <Boolean>] [-RestrictExternalSharingForAgents <Boolean>]
642-
-RestrictExternalSharing <Guid[]> [-AddAppIdToList] [-RemoveAppIdFromList] [<CommonParameters>]
646+
-RestrictExternalSharing <Guid[]> [-AddAppIdToList] [-RemoveAppIdFromList]
647+
[-AllowFileArchive <Boolean>] [-AllowFileArchiveByDefault <Boolean>] [<CommonParameters>]
643648
```
644649

645650
## DESCRIPTION
@@ -1129,6 +1134,52 @@ Accept pipeline input: False
11291134
Accept wildcard characters: False
11301135
```
11311136

1137+
### -AllowFileArchive
1138+
1139+
> Applicable: SharePoint Online
1140+
1141+
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.
1142+
1143+
The valid values are:
1144+
1145+
- 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.
1146+
- False - Blocks manual archiving for all files, regardless of the site-level setting. Admin-defined policies can still archive files automatically.
1147+
1148+
```yaml
1149+
Type: Boolean
1150+
Parameter Sets: (All)
1151+
Aliases:
1152+
1153+
Required: False
1154+
Position: Named
1155+
Default value: True
1156+
Accept pipeline input: False
1157+
Accept wildcard characters: False
1158+
```
1159+
1160+
### -AllowFileArchiveOnNewSitesByDefault
1161+
1162+
> Applicable: SharePoint Online
1163+
1164+
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.
1165+
1166+
The valid values are:
1167+
1168+
- 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.
1169+
- False - Sets `AllowFileArchive` to False for all newly provisioned sites.
1170+
1171+
```yaml
1172+
Type: Boolean
1173+
Parameter Sets: (All)
1174+
Aliases:
1175+
1176+
Required: False
1177+
Position: Named
1178+
Default value: True
1179+
Accept pipeline input: False
1180+
Accept wildcard characters: False
1181+
```
1182+
11321183
### -AllowGuestUserShareToUsersNotInSiteCollection
11331184

11341185
> Applicable: SharePoint Online

0 commit comments

Comments
 (0)