RSS

Cleanup document versioning in SharePoint 2007

13 Aug

Customers always would like to keep store their all document versions but they don’t know how much space would take to keep storing the versions on the document.Document versions are always a bottleneck for the SharePoint administrators interms of sizing the quota limit.

Mike Mukalian had written an excellent powershell script to delete all the versions of document/files in the document library. For more information, please take a look at his blog entry.

http://www.mukalian.com/blog/post/2011/04/10/PowerShell-Script-to-Delete-All-Versions-in-a-Document-Library.aspx

Also, SP administrators would always like to automate this operation on a periodical schedule. In order to do that,  1. Create a scheduled task to run the script nightly/your own schedule and configure Powershell permissions on the server (run Set-ExecutionPolicy RemoteSigned from a Powershell prompt).

 

Advertisements
 
Leave a comment

Posted by on August 13, 2012 in PowerShell, Sharepoint

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: