SharePoint Online: Set Versioning Limit using PowerShell

Requirement: Set version history limit in SharePoint Online document library. How to Configure Version History Limits in SharePoint Online? By default, any document library created in SharePoint Online is enabled with a version history limit of 500. To limit the number of versions for a library in SharePoint Online, Go to your…

Read more

SharePoint Online: PowerShell to Disable Versioning

Requirement: Disable Versioning in SharePoint Online using PowerShell How to Disable Versioning in SharePoint Online? The versioning feature in SharePoint Online creates a copy of items when someone changes a document so that we can track every change to the document and revert to the old version if needed. Although it’s a…

Read more

SharePoint Online: Download All Versions of a Document using PowerShell

Requirement: Download All Versions of a Document in SharePoint Online using PowerShell SharePoint Online: PowerShell to Download All Versions of a Document Version history in SharePoint Online lets you store, track, and restore files in a library as they are changed. There are times you may need to download all previous versions…

Read more

SharePoint Online: Delete Version History using PnP PowerShell

Requirement: Delete version history in SharePoint Online. How to Delete versions in SharePoint Online? To delete previous versions of a file in SharePoint Online, follow these steps: Navigate to your SharePoint Online document library, select the file and then click on “Version History” from the toolbar. (or Select “Version History” from the…

Read more

SharePoint Online: Export List Version History to Excel using PowerShell

Requirement: Export all versions of SharePoint Online List Items to CSV (Excel) file. PowerShell to Extract and Export List Item’s Version History to CSV File: This article assumes you have an existing SharePoint Online list with columns given below. You may have to create and change columns according to your requirement. Important:…

Read more

Compare SharePoint List Item Version History using PowerShell

Requirement: Compare version history data of SharePoint List items and update a metadata column based on a particular field’s value change. A bit of background: We’ve a project tracking list with “Status” column. We wanted to have an insight on when a particular item’s status was set to “Rejected”. PowerShell to Compare…

Read more

SharePoint Online: How to Enable Versioning on a Document Library using PowerShell?

What is versioning in SharePoint Online? Version history feature in SharePoint Online tracks every change to the document and creates a copy of it when someone changes a document. Once you enable versioning settings for a List or Library, Versioning features are turned ON and all changes will be tracked. Site owners…

Read more

SharePoint Online: Version History Report using PowerShell

Requirement: Generate version history report for all sites in a SharePoint site collection. SharePoint Online PowerShell to Get Version History Details of a Document Library Version history feature in SharePoint Online maintains a history of all changes that have been made to any file or list item. When multiple users are working…

Read more

SharePoint Online: Versioning Analysis on All Lists and Libraries using PowerShell

Requirement: Audit versioning settings for all lists and libraries in SharePoint online site collection. PowerShell to Generate Versioning Settings Analysis for SharePoint Online Site Collection: This PowerShell script generates a CSV output provided in the $ReportOutput parameter. Please note, this script gets versioning configurations for a given site collection. You can retrieve…

Read more

SharePoint Online: Restore the Previous Version of a Document using PowerShell

Requirement: Restore previous version of a document in SharePoint Online. How to Restore a previous version of a document or Item in SharePoint Online? When you restore a previous version of a list item or document, that version becomes the current version. You may want to restore a previous version when changes…

Read more