Skip to content

Add new versioning cmdlets. #3799

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 21 commits into from
Mar 1, 2024
Merged

Conversation

blarrywangmsft
Copy link

@blarrywangmsft blarrywangmsft commented Feb 29, 2024

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Adding the following new cmdlets / cmdlet updates.

  1. Getting the version expiration report for a single file.

    • Get-PnPFileVersion is an existing PnP cmdlet, adding new switch parameter -UseVersionExpirationReport
  2. Queuing a job for deleting the file versions based on age.

    • New-PnPLibraryFileVersionBatchDeleteJob
    • New-PnPSiteFileVersionBatchDeleteJob
  3. Cancelling the job from Cmdlet 2.

    • Remove-PnPLibraryFileVersionBatchDeleteJob
    • Remove-PnPSiteFileVersionBatchDeleteJob
  4. Queuing a job for generating a file version expiration report for all files in a document library or site.

    • New-PnPLibraryFileVersionExpirationReportJob
    • New-PnPSiteFileVersionExpirationReportJob
  5. Getting the progress for the job from Cmdlet 4.

    • Get-PnPLibraryFileVersionExpirationReportJobProgress
    • Get-PnPSiteFileVersionExpirationReportJobProgress

@blarrywangmsft blarrywangmsft changed the title Add versioning commands Add new versioning cmdlets. Feb 29, 2024
@KoenZomers
Copy link
Collaborator

All good, thx @blarrywangmsft !

@KoenZomers KoenZomers merged commit 836de12 into pnp:dev Mar 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants