PBIT
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.
How to find out versioning settings for document libraries in SharePoint 2010? Can you provide a PowerShell script that can do this?
Thanks.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
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:
HTH
Rainer
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
HTH
Rainer
ASKER
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.MajorWithMinorVersion