You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example 3 sets manual version histroy limits on the document library called "Documents" by limiting the number of versions with no time limits. The new document libraries will use this version setting.
67
+
Example 3 sets manual version histroy limits on the document library called "Documents" by limiting the number of versions with no time limits.
Example 5 sets manual version history limit override for video and audio file types on the document library called "Documents" by limiting the number of versions and the time (in days) versions are kept.
Example 6 sets manual version history limit override for video and audio file types on the document library called "Documents" by limiting the number of versions with no time limits.
Example 7 sets the version history limits (include file type overrides) to that of the tenant or site (if the site this document library is in has broken inheritance for version history limits).
Example 8 sets the default version history limits and overrides for video and audio file types to that of the tenant or site (if the site this document library is in has broken inheritance for version history limits).
Example 9 sets the default version history limit to that of the tenant or site (if the site this document library is in has broken inheritance for version history limits).
Example 10 sets the only the version history limit overrides for video and audio file types to that of the tenant or site (if the site this document library is in has broken inheritance for version history limits).
Example 10 sets the version history limit overrides for all file types to that of the tenant or site (if the site this document library is in has broken inheritance for version history limits).
Example 12 removes the version history limit overrides for video and audio file types so that they follow the default version history limits.
55
140
56
141
## PARAMETERS
57
142
@@ -77,8 +162,8 @@ The valid values are:
77
162
PARAMVALUE: $true | $false
78
163
79
164
```yaml
80
-
Type: System.Boolean
81
-
Parameter Sets: (All)
165
+
Type: Boolean
166
+
Parameter Sets: SetPolicy
82
167
Aliases:
83
168
84
169
Required: True
@@ -88,6 +173,26 @@ Accept pipeline input: False
88
173
Accept wildcard characters: False
89
174
```
90
175
176
+
### -ExcludeDefaultPolicy
177
+
> Applicable: SharePoint Online
178
+
179
+
Indicates whether to synchronize the default version policy to the default policy of the tenant or the site (if the site this document library is in has broken inheritance for version history limits).
180
+
181
+
> [!NOTE]
182
+
> This feature is currently in preview and may not be available in your tenant.
183
+
184
+
```yaml
185
+
Type: SwitchParameter
186
+
Parameter Sets: SyncPolicy
187
+
Aliases:
188
+
189
+
Required: False
190
+
Position: Named
191
+
Default value: None
192
+
Accept pipeline input: False
193
+
Accept wildcard characters: False
194
+
```
195
+
91
196
### -ExpireVersionsAfterDays
92
197
93
198
> Applicable: SharePoint Online
@@ -96,8 +201,43 @@ When version history limits are managed manually (`EnableAutoExpirationVersionTr
96
201
PARAMVALUE: Int32
97
202
98
203
```yaml
99
-
Type: System.Int32
100
-
Parameter Sets: (All)
204
+
Type: Int32
205
+
Parameter Sets: SetPolicy
206
+
Aliases:
207
+
208
+
Required: False
209
+
Position: Named
210
+
Default value: None
211
+
Accept pipeline input: False
212
+
Accept wildcard characters: False
213
+
```
214
+
215
+
### -FileTypes
216
+
> Applicable: SharePoint Online
217
+
218
+
An array of file type names. The supported file type names are:
219
+
220
+
- Audio
221
+
222
+
- OutlookPST
223
+
224
+
- Video
225
+
226
+
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:
227
+
228
+
- EnableAutoExpirationVersionTrim
229
+
230
+
- MajorVersionLimit
231
+
232
+
- ExpireVersionsAfterDays
233
+
234
+
Or apply the version history limit override for the file types of the tenant or the site (if the site this document library is in has broken inheritance for version history limits) by using the **Sync** parameter. For more information about this option, please refer to the documentation for the **Sync** parameter.
235
+
236
+
237
+
238
+
```yaml
239
+
Type: String[]
240
+
Parameter Sets: SetPolicy, SyncPolicy
101
241
Aliases:
102
242
103
243
Required: False
@@ -131,8 +271,8 @@ When version history limits are managed manually (`EnableAutoExpirationVersionTr
131
271
PARAMVALUE: Int32
132
272
133
273
```yaml
134
-
Type: System.Int32
135
-
Parameter Sets: (All)
274
+
Type: Int32
275
+
Parameter Sets: SetPolicy
136
276
Aliases:
137
277
138
278
Required: False
@@ -150,8 +290,8 @@ When version history limits are managed manually (`EnableAutoExpirationVersionTr
150
290
PARAMVALUE: Int32
151
291
152
292
```yaml
153
-
Type: System.Int32
154
-
Parameter Sets: (All)
293
+
Type: Int32
294
+
Parameter Sets: SetPolicy
155
295
Aliases:
156
296
157
297
Required: False
@@ -161,6 +301,23 @@ Accept pipeline input: False
161
301
Accept wildcard characters: False
162
302
```
163
303
304
+
### -RemoveVersionExpirationFileTypeOverride
305
+
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.
Apply the version history limits of the tenant or the site (if the site this document library is in has broken inheritance for version history limits).
341
+
342
+
You may use the following parameters in combination to update only the default policy or a set of file type overrides:
343
+
344
+
- ExcludeDefaultPolicy: if set, it will not update the default policy.
345
+
346
+
- FileTypes:
347
+
348
+
- if set, it will update the specified file types;
349
+
350
+
- if not set, it will update all file type overrides;
351
+
352
+
- if set to an empty array (i.e. `@()`), it will not update any file type overrides.
353
+
354
+
> [!NOTE]
355
+
> This feature is currently in preview and may not be available in your tenant.
356
+
357
+
```yaml
358
+
Type: SwitchParameter
359
+
Parameter Sets: SyncPolicy
360
+
Aliases:
361
+
362
+
Required: False
363
+
Position: Named
364
+
Default value: None
365
+
Accept pipeline input: False
366
+
Accept wildcard characters: False
367
+
```
368
+
182
369
### CommonParameters
183
370
184
371
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments