OCSDTech
asked on
Globally configure the default number of versions for SharePoint Document Libraries
By default, when turning on versioning in SharePoint, the number of versions is unlimited.
This is obviously a problem in terms of long term management. How can the default number of versions be set or propagated?
I have a SQL query that gives me which lists (url and guids) have versioning turned on but I'm looking for the stsadm, webservice or similar command to set the version limit property value.
This is obviously a problem in terms of long term management. How can the default number of versions be set or propagated?
I have a SQL query that gives me which lists (url and guids) have versioning turned on but I'm looking for the stsadm, webservice or similar command to set the version limit property value.
There is no way out of the box to solve this problem.
Like all SP administrator, I have this exact same issue.
Our solution (not yet implemented) will be a Powershell Script that uses the SP Object Model.
Here is a tutorial to get you get started - http://www.u2u.info/Blogs/karine/Lists/Posts/Post.aspx?ID=10
I'll try to provide a more specific code sample later today.
Our solution (not yet implemented) will be a Powershell Script that uses the SP Object Model.
Here is a tutorial to get you get started - http://www.u2u.info/Blogs/karine/Lists/Posts/Post.aspx?ID=10
I'll try to provide a more specific code sample later today.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
quihong,
Great solution. I modified the script so that only one library would be changed. Tested it with Powershell 1.0 and it worked.
Thanks!
Great solution. I modified the script so that only one library would be changed. Tested it with Powershell 1.0 and it worked.
Thanks!