Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 12728

How to run script to get versioning from document libraries in a web application?

$
0
0

Hello,

I found this script in this article that I like to use to cycle through multiplue document libraries for a web application.

http://blogs.technet.com/b/versioning_settings_using_powershell/archive/2012/04/17/document-library-versioning-settings-using-powershell.aspx

There is PowerShell code that sets the properties for versioning (see below). If I wanted to just see what the settings are, what would the code look like?

...

$list.EnableVersioning = $true;
$list.EnableMinorVersions = $false;
$list.MajorWithMinorVersionsLimit = 0;
$list.MajorVersionLimit = 0;

...

How would I run the whole script?

Thanks.


Paul


Viewing all articles
Browse latest Browse all 12728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>