Skip to content

Commit

Permalink
func: update help
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTaylorLee committed Sep 13, 2024
1 parent 8928eb7 commit 988026a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.EXAMPLE
$date = Get-Date -Format yyyy-MM-dd
Get-VersionHistoryReport -sites "https://company.sharepoint.com/sites/site1", "https://company.sharepoint.com/sites/site2" -ListName "Documents" -LogPath "$env:userprofile\downloads\$date SharepointVersionReport.csv"
Get-VersionHistoryReport -sites "https://company.sharepoint.com/sites/site1", "https://company.sharepoint.com/sites/site2" -ListName "Documents" -LogPath "$env:userprofile\downloads\$date SharepointVersionReport.csv" -clientid "12345678-1234-1234-1234-123456789012"
Retrieves the version history for files in the "Documents" list from two SharePoint Online sites and exports the information to your downloads folder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.EXAMPLE
Import-Module pnp.powershell
Remove-VersionHistoryOlderThan -site "https://company.sharepoint.com/sites/site1", "https://company.sharepoint.com/sites/site2" -listName "Documents" -months 3 -logpath $env:userprofile\downloads\Remove-VersionHistoryOlderThan.csv
Remove-VersionHistoryOlderThan -site "https://company.sharepoint.com/sites/site1", "https://company.sharepoint.com/sites/site2" -listName "Documents" -months 3 -logpath $env:userprofile\downloads\Remove-VersionHistoryOlderThan.csv -clientid "12345678-1234-1234-1234-123456789012"
This example removes version history older than 3 months for files in the "Documents" list of the SharePoint Online site "https://company.sharepoint.com/sites/site1".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
Specifies the maximum number of minor versions to keep for each item in the SharePoint list or library. This parameter accepts an integer value.
.EXAMPLE
Set-SharepointVersionLimits -Sites "https://tenant.sharepoint.com/sites/site1", "https://tenant.sharepoint.com/sites/site2" -ListName "Documents" -EnableVersioning $true -MajorVersionLimit 10 -MinorVersionLimit 5
Set-SharepointVersionLimits -Sites "https://tenant.sharepoint.com/sites/site1", "https://tenant.sharepoint.com/sites/site2" -ListName "Documents" -EnableVersioning $true -MajorVersionLimit 10 -MinorVersionLimit 5 -clientid "12345678-1234-1234-1234-123456789012"
Sets versioning limits for the "Documents" library in the "site1" and "site2" SharePoint sites. Versioning is enabled with a maximum of 10 major versions and 5 minor versions.
.EXAMPLE
$siteurl = "https://tenant-admin.sharepoint.com"
Connect-PnPOnline $Site -Interactive
[string[]]$allSites = Get-PnPTenantSite | Sort-Object -Property Url
Set-SharepointVersionLimits -Sites $allsites -ListName "Documents" -EnableVersioning $false
Set-SharepointVersionLimits -Sites $allsites -ListName "Documents" -EnableVersioning $false -clientid "12345678-1234-1234-1234-123456789012"
Disables versioning for the "Documents" library on all sites that the connected account has owner rights to.
Expand Down

0 comments on commit 988026a

Please sign in to comment.