Skip to content

Commit bbbd665

Browse files
author
blarrywang
committed
Reduce the number of examples.
1 parent 517204c commit bbbd665

File tree

3 files changed

+11
-130
lines changed

3 files changed

+11
-130
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/New-SPOListFileVersionBatchDeleteJob.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,6 @@ New-SPOListFileVersionBatchDeleteJob -Site https://contoso.sharepoint.com/sites/
9999

100100
Example 6 starts a trim job that will delete file versions for video and audio file types in the document library based on the version history limits of the document library.
101101

102-
### EXAMPLE 7
103-
104-
```powershell
105-
New-SPOListFileVersionBatchDeleteJob -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -TrimUseListPolicy -ExcludeDefaultPolicy
106-
```
107-
108-
Example 7 starts a trim job that will delete file versions for all file types that have a version history limit override in the document library based on the version history limits of the document library.
109-
110-
### EXAMPLE 8
111-
112-
```powershell
113-
New-SPOListFileVersionBatchDeleteJob -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -TrimUseListPolicy -FileTypes @()
114-
```
115-
116-
Example 8 starts a trim job that will delete file versions for all file types that don't have a version history limit override in the document library based on the version history limits of the document library.
117-
118102
## PARAMETERS
119103

120104
### -Automatic

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/New-SPOSiteManageVersionPolicyJob.md

Lines changed: 4 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Apply the site video, audio, and default version history limits to existing docu
5454

5555
### Example 2
5656

57-
5857
```powershell
5958
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
6059
```
@@ -63,112 +62,44 @@ Apply the site video, audio version history limits to existing document librarie
6362

6463
### Example 3
6564

66-
67-
```powershell
68-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -FileTypes @()
69-
```
70-
71-
Apply the site default version history limits to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits.
72-
73-
### Example 4
74-
75-
7665
```powershell
7766
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy
7867
```
7968

8069
Apply the site version history limits (including file type overrides) to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits.
8170

82-
### Example 5
83-
84-
85-
```powershell
86-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -ExcludeDefaultPolicy
87-
```
88-
89-
Apply all site file type version history limit overrides to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits.
90-
91-
### Example 6
71+
### Example 4
9272

9373
```powershell
9474
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -FileTypes @("Video","Audio")
9575
```
9676

9777
Trim video and audio file versions, and the file versions that don't have a file type override, based on each document library's version history limits.
9878

99-
### Example 7
79+
### Example 5
10080

10181
```powershell
10282
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
10383
```
10484

10585
Trim video and audio file versions based on each document library's version history limits.
10686

107-
### Example 8
108-
109-
```powershell
110-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -FileTypes @()
111-
```
112-
113-
Trim file versions that don't have a file type override based on each document library's version history limits.
114-
115-
### Example 9
87+
### Example 6
11688

11789
```powershell
11890
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy
11991
```
12092

12193
Trim all file versions based on each document library's version history limits.
12294

123-
### Example 10
124-
125-
```powershell
126-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -ExcludeDefaultPolicy
127-
```
128-
129-
Trim all file versions that have a file type override based on each document library's version history limits.
130-
131-
132-
### Example 11
133-
134-
```powershell
135-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -FileTypes @("Video","Audio")
136-
```
137-
138-
Apply the site video, audio, and default version history limits to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits. Then trim video and audio file versions, and the file versions that don't have a file type override, based on each document library's version history limits.
139-
140-
### Example 12
141-
142-
```powershell
143-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
144-
```
145-
146-
Apply the site video, audio version history limits to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits. Then trim video and audio file versions based on each document library's version history limits.
147-
148-
### Example 13
149-
150-
```powershell
151-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy -FileTypes @()
152-
```
153-
154-
Apply the site default version history limits to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits. Then trim file versions that don't have a file type override based on each document library's version history limits.
155-
156-
### Example 14
95+
### Example 7
15796

15897
```powershell
15998
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy
16099
```
161100

162101
Apply the site version history limits (including file type overrides) to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits. Then trim all file versions based on each document library's version history limits.
163102

164-
### Example 15
165-
166-
```powershell
167-
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy -ExcludeDefaultPolicy
168-
```
169-
170-
Apply all site file type version history limit overrides to existing document libraries. If the site is not broken inheritance for version history limits, then it applies the tenant version history limits. Then trim all file versions that have a file type override based on each document library's version history limits.
171-
172103
## PARAMETERS
173104

174105
### -Confirm

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

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -74,69 +74,35 @@ Example 4 sets automatic version history limit override for video and audio file
7474

7575
### EXAMPLE 5
7676

77-
```powershell
78-
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -MajorWithMinorVersionsLimit 20 -ExpireVersionsAfterDays 30 -FileTypes @("Video", "Audio")
79-
```
80-
81-
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.
82-
83-
### EXAMPLE 6
84-
85-
```powershell
86-
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -EnableAutoExpirationVersionTrim $false -MajorVersionLimit 500 -MajorWithMinorVersionsLimit 20 -ExpireVersionsAfterDays 0 -FileTypes @("Video", "Audio")
87-
```
88-
89-
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.
90-
91-
### EXAMPLE 7
92-
9377
```powershell
9478
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -Sync
9579
```
9680

97-
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).
81+
Example 5 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).
9882

99-
### EXAMPLE 8
83+
### EXAMPLE 6
10084

10185
```powershell
10286
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -Sync -FileTypes @("Video", "Audio")
10387
```
10488

105-
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).
89+
Example 6 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).
10690

107-
### EXAMPLE 9
108-
109-
```powershell
110-
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -Sync -FileTypes @()
111-
```
112-
113-
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).
114-
115-
### EXAMPLE 10
91+
### EXAMPLE 7
11692

11793
```powershell
11894
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -Sync -FileTypes @("Video", "Audio") -ExcludeDefaultPolicy
11995
```
12096

121-
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).
122-
123-
### EXAMPLE 11
124-
125-
126-
```powershell
127-
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -Sync -ExcludeDefaultPolicy
128-
```
129-
130-
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).
131-
132-
### EXAMPLE 12
97+
Example 7 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).
13398

99+
### EXAMPLE 8
134100

135101
```powershell
136102
Set-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents" -RemoveVersionExpirationFileTypeOverride @("Video", "Audio")
137103
```
138104

139-
Example 12 removes the version history limit overrides for video and audio file types so that they follow the default version history limits.
105+
Example 8 removes the version history limit overrides for video and audio file types so that they follow the default version history limits.
140106

141107
## PARAMETERS
142108

0 commit comments

Comments
 (0)