0

I searched the SharePoint Community Site and didn’t find this solution so I am just adding it here. Got a request today to restore an item from the recycle bin (Top-Level). User had the document name but no knowledge of when it was deleted. Navigating the recycle bin looking for a document can take time and is no fun, especially if it is full of deleted items. Here is a nice powershell script to find the deleted item and also restore it:

$sitecoll  = Get-SPSite “http://wheresmydoc.findit.com”

$sitecoll.RecycleBin | ?{$_.Title -match “MyDocIsHere.xls”}

Running the above will display its properties if the document is found. Now run the below to restore your document

$sitecoll.RecycleBin.Restore(“place doc ID here”)

Thats it.

 

(Visited 206 times, 1 visits today)
Add a Comment