After an overwrite to several hundred files we need a quick way to either restore the entire file to the previous version or ideal just the custom property fields.
I tried to find a way to script a query into the document library and collect the previous version custom data into an excel spreadsheet but could not find a solution.
I came across this post that indicated he was able to restore only the file properties but retained the current version (which was not his gold but would be mine).
He included a snippet of his code:
Would this work? is there a powershell equivalent?
Whats the easies way to make this code into a useful solution.
int versionCount = item.Versions.Count;
if (versionCount >
// this only restores properties
View Complete Post