Modify List Properties

Let’s consider the following scenario: a site owner wants to uniform versioning settings for all lists and libraries in the site farm. A combination of PowerShell and API comes to the rescue in such a scenario. To achieve that, we can combine existing Get-SPSite and Get-SPWeb cmdlets with a custom function:

image

image

If an administrator needs to enable five major versions, and keep minor versions for three last major versions, the function needs to be called like this:

Get Microsoft SharePoint 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.