Link to home
Start Free TrialLog in
Avatar of James Halliburton
James HalliburtonFlag for United States of America

asked on

SharePoint 2010 Document Library

I have a document library in SharePoint that houses over 400 documents.

Within this document library is a column titled "Status".

All of the documents fall under 1 of 2 Statuses, "Active" and "Archive"

Is there a way I can change the status of all of the "Active" documents to "Archive" without having to edit each document one at a time?
ASKER CERTIFIED SOLUTION
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can use Powershell to do this.

Here is the simplest way of updating all documents in a library:
http://blogs.msdn.com/b/paulking/archive/2011/10/04/using-powershell-scripts-to-modify-document-properties-in-sharepoint-2010.aspx

You need to change the update command to something like this:

 # Updates the title for each item in the list with Name
$docs.items | ForEach { $_["Status"] = "Archive"; $_.Update() }

Open in new window


If you have never done this before be very very careful and make sure you have backups available.  I would revommend you trying this on a test site before doing anythign on the live site.
Avatar of James Halliburton

ASKER

Thats a very thoughtful and creative resolution and more imporantly, it worked!! Thanks Teylyn, that was very nice indeed.
Glad it worked for you, Lord_Dragon. Thanks for the grade.

- teylyn