@@ -105,7 +105,9 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
105105 [-IsEnableAppAuthPopUpEnabled <Boolean>] [-IsDataAccessInCardDesignerEnabled <Boolean>]
106106 [-MassDeleteNotificationDisabled <Boolean>] [-EnableAutoExpirationVersionTrim <Boolean>]
107107 [-EnableMediaReactions <Boolean>] [-BusinessConnectivityServiceDisabled <Boolean>]
108- [-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>] [-AllowSensitivityLabelOnRecords <Boolean>]
108+ [-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>] [-FileTypesForVersionExpiration <String[]>]
109+ [-RemoveVersionExpirationFileTypeOverride <String[]>]
110+ [-AllowSensitivityLabelOnRecords <Boolean>]
109111 [-DelayDenyAddAndCustomizePagesEnforcement <Boolean>]
110112 [-DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites <Boolean>]
111113 [-AllowClassicPublishingSiteCreation <Boolean>] [-WhoCanShareAnonymousAllowList <Guid[]>]
@@ -337,7 +339,9 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
337339 [-IsEnableAppAuthPopUpEnabled <Boolean>] [-IsDataAccessInCardDesignerEnabled <Boolean>]
338340 [-MassDeleteNotificationDisabled <Boolean>] [-EnableAutoExpirationVersionTrim <Boolean>]
339341 [-EnableMediaReactions <Boolean>] [-BusinessConnectivityServiceDisabled <Boolean>]
340- [-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>] [-AllowSensitivityLabelOnRecords <Boolean>]
342+ [-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>]
343+ [-FileTypesForVersionExpiration <String[]>] [-RemoveVersionExpirationFileTypeOverride <String[]>]
344+ [-AllowSensitivityLabelOnRecords <Boolean>]
341345 [-DelayDenyAddAndCustomizePagesEnforcement <Boolean>]
342346 [-DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites <Boolean>]
343347 [-AllowClassicPublishingSiteCreation <Boolean>] [-WhoCanShareAnonymousAllowList <Guid[]>]
@@ -452,7 +456,9 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
452456 [-IsEnableAppAuthPopUpEnabled <Boolean>] [-IsDataAccessInCardDesignerEnabled <Boolean>]
453457 [-MassDeleteNotificationDisabled <Boolean>] [-EnableAutoExpirationVersionTrim <Boolean>]
454458 [-EnableMediaReactions <Boolean>] [-BusinessConnectivityServiceDisabled <Boolean>]
455- [-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>] [-AllowSensitivityLabelOnRecords <Boolean>]
459+ [-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>]
460+ [-FileTypesForVersionExpiration <String[]>] [-RemoveVersionExpirationFileTypeOverride <String[]>]
461+ [-AllowSensitivityLabelOnRecords <Boolean>]
456462 [-DelayDenyAddAndCustomizePagesEnforcement <Boolean>]
457463 [-DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites <Boolean>]
458464 [-AllowClassicPublishingSiteCreation <Boolean>] [-WhoCanShareAnonymousAllowList <Guid[]>]
@@ -664,6 +670,42 @@ Set-SPOTenant -DisabledAdaptiveCardExtensionIds 0d2d0fd0-9489-47ef-acfb-90edca00
664670
665671This example disables the Power Apps Adaptive Card Extension.
666672
673+ ### EXAMPLE 22
674+
675+
676+ ``` powershell
677+ Set-SPOTenant -EnableAutoExpirationVersionTrim $true -FileTypesForVersionExpiration @("Video", "Audio")
678+ ```
679+
680+ This example sets automatic version history limit override for video and audio file types on all new document libraries at tenant level.
681+
682+ ### EXAMPLE 23
683+
684+
685+ ``` powershell
686+ Set-SPOTenant -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 30 -FileTypesForVersionExpiration @("Video", "Audio")
687+ ```
688+
689+ This example sets manual version history limit override for video and audio file types on all new document libraries at tenant level by limiting the number of major versions and the time (in days) versions are kept.
690+
691+ ### EXAMPLE 24
692+
693+
694+ ``` powershell
695+ Set-SPOTenant -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -ExpireVersionsAfterDays 0 -FileTypesForVersionExpiration @("Video", "Audio")
696+ ```
697+
698+ This example sets manual version history limit override for video and audio file types on all new document libraries at tenant level by limiting the number of major versions with no time limits.
699+
700+ ### EXAMPLE 25
701+
702+
703+ ``` powershell
704+ Set-SPOTenant -RemoveVersionExpirationFileTypeOverride @("Video", "Audio")
705+ ```
706+
707+ This example removes any specific version history limit override set for video and audio file types on all new document libraries at tenant level.
708+
667709## PARAMETERS
668710
669711### -AIBuilderModelScope
@@ -3125,6 +3167,42 @@ Accept pipeline input: False
31253167Accept wildcard characters: False
31263168` ` `
31273169
3170+ # ## -FileTypesForVersionExpiration
3171+
3172+ An array of file type names. The supported file type names are :
3173+
3174+ - Audio
3175+
3176+ - OutlookPST
3177+
3178+ - Video
3179+
3180+ Apply the version history limits to a set of file types so that they no longer follow the default version history limits. It is used in combination with the following parameters :
3181+
3182+ - EnableAutoExpirationVersionTrim
3183+
3184+ - MajorVersionLimit
3185+
3186+ - ExpireVersionsAfterDays
3187+
3188+ The version history limits are applied on new document libraries in the tenant.
3189+
3190+ > [!NOTE]
3191+ > This feature is currently in preview and may not be available in your tenant.
3192+
3193+
3194+ ` ` ` yaml
3195+ Type: String[]
3196+ Parameter Sets: (All)
3197+ Aliases:
3198+
3199+ Required: False
3200+ Position: Named
3201+ Default value: None
3202+ Accept pipeline input: False
3203+ Accept wildcard characters: False
3204+ ` ` `
3205+
31283206# ## -FolderAnonymousLinkType
31293207
31303208> Applicable: SharePoint Online
@@ -4434,6 +4512,30 @@ Accept pipeline input: False
44344512Accept wildcard characters: False
44354513` ` `
44364514
4515+ # ## -RemoveVersionExpirationFileTypeOverride
4516+
4517+ An array of file type names. Removes the version history limits to a set of file types so that they will follow the default version history limits.
4518+
4519+ The version history limits are applied on new document libraries in the tenant.
4520+
4521+ > [!NOTE]
4522+ > This feature is currently in preview and may not be available in your tenant.
4523+
4524+ YAML
4525+
4526+
4527+ ```
4528+ Type: String[ ]
4529+ Parameter Sets: (All)
4530+ Aliases:
4531+
4532+ Required: False
4533+ Position: Named
4534+ Default value: None
4535+ Accept pipeline input: False
4536+ Accept wildcard characters: False
4537+ ```
4538+
44374539### -RequireAcceptingAccountMatchInvitedAccount
44384540
44394541This parameter has been deprecated since SharePoint Online legacy invitation flow switched to Entra B2B invitation flow.
0 commit comments