Link to home
Create AccountLog in
Avatar of PBIT
PBITFlag for United States of America

asked on

How to find out versioning settings for document libraries in SharePoint 2010?

Hello,

How to find out versioning settings for document libraries in SharePoint 2010? Can you provide a PowerShell script that can do this?

Thanks.
SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of PBIT

ASKER

Thanks.

One question: What if I just want to view the settings, but not actuall set them. What would the PowerShell script look like?

Here is the code to set a property to 3:    list.MajorWithMinorVersionsLimit = 3;
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Hi,
here we go:
$SiteUrl = "http://yoursharepointurl"
$web = Get-SPWeb $SiteUrl
$web.Lists | Sort-Object -Property Title | Format-Table -Property Title,DefaultViewUrl,EnableVersioning,EnableMinorVersions,MajorWithMinorVersionsLimit,MajorVersionLimit

Open in new window


HTH
Rainer