Skip to content

Commit 9d98113

Browse files
Learn Editor: Update New-SPOSiteManageVersionPolicyJob.md
1 parent d0ba448 commit 9d98113

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This effect can be applied to default version history limits, or a set of file t
4747
### Example 1
4848

4949
```powershell
50-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -FileTypes @("Video","Audio")
50+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -FileTypes @("Video","Audio")
5151
```
5252

5353
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.
@@ -56,7 +56,7 @@ Apply the site video, audio, and default version history limits to existing docu
5656

5757

5858
```powershell
59-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
59+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
6060
```
6161

6262
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.
@@ -65,7 +65,7 @@ Apply the site video, audio version history limits to existing document librarie
6565

6666

6767
```powershell
68-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -FileTypes @()
68+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -FileTypes @()
6969
```
7070

7171
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.
@@ -74,7 +74,7 @@ Apply the site default version history limits to existing document libraries. If
7474

7575

7676
```powershell
77-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy
77+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy
7878
```
7979

8080
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.
@@ -83,15 +83,15 @@ Apply the site version history limits (including file type overrides) to existin
8383

8484

8585
```powershell
86-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -ExcludeDefaultPolicy
86+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -ExcludeDefaultPolicy
8787
```
8888

8989
Apply the site level all 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.
9090

9191
### Example 6
9292

9393
```powershell
94-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -TrimUseListPolicy -FileTypes @("Video","Audio")
94+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -FileTypes @("Video","Audio")
9595
```
9696

9797
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.
@@ -100,7 +100,7 @@ Trim video and audio file versions, and the file versions that don't have a file
100100

101101

102102
```powershell
103-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -TrimUseListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
103+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
104104
```
105105

106106
Trim video and audio file versions based on each document library's version history limits.
@@ -109,7 +109,7 @@ Trim video and audio file versions based on each document library's version hist
109109

110110

111111
```powershell
112-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -TrimUseListPolicy -FileTypes @()
112+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -FileTypes @()
113113
```
114114

115115
Trim file versions that don't have a file type override based on each document library's version history limits.
@@ -118,7 +118,7 @@ Trim file versions that don't have a file type override based on each document l
118118

119119

120120
```powershell
121-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -TrimUseListPolicy
121+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy
122122
```
123123

124124
Trim all file versions based on each document library's version history limits.
@@ -127,7 +127,7 @@ Trim all file versions based on each document library's version history limits.
127127

128128

129129
```powershell
130-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -TrimUseListPolicy -ExcludeDefaultPolicy
130+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -TrimUseListPolicy -ExcludeDefaultPolicy
131131
```
132132

133133
Trim all file versions that have a file type override based on each document library's version history limits.
@@ -136,7 +136,7 @@ Trim all file versions that have a file type override based on each document lib
136136
### Example 11
137137

138138
```powershell
139-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -FileTypes @("Video","Audio")
139+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -FileTypes @("Video","Audio")
140140
```
141141

142142
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.
@@ -145,7 +145,7 @@ Apply the site video, audio, and default version history limits to existing docu
145145

146146

147147
```powershell
148-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -TrimUseListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
148+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy -FileTypes @("Video","Audio") -ExcludeDefaultPolicy
149149
```
150150

151151
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.
@@ -154,7 +154,7 @@ Apply the site video, audio version history limits to existing document librarie
154154

155155

156156
```powershell
157-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -TrimUseListPolicy -FileTypes @()
157+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy -FileTypes @()
158158
```
159159

160160
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.
@@ -163,7 +163,7 @@ Apply the site default version history limits to existing document libraries. If
163163

164164

165165
```powershell
166-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -TrimUseListPolicy
166+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy
167167
```
168168

169169
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.
@@ -172,7 +172,7 @@ Apply the site version history limits (including file type overrides) to existin
172172

173173

174174
```powershell
175-
New-SPOSiteManageVersionPolicyJob -Identity $siteUrl -SyncListPolicy -TrimUseListPolicy -ExcludeDefaultPolicy
175+
New-SPOSiteManageVersionPolicyJob -Identity https://contoso.sharepoint.com/sites/site1 -SyncListPolicy -TrimUseListPolicy -ExcludeDefaultPolicy
176176
```
177177

178178
Apply the site level all 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.

0 commit comments

Comments
 (0)