Tuesday, February 23, 2016

Restore List Items from Recycle bin using Powershell Script by having item Guid

$site = Get-SPSite http://server/sites/site
 $site.RecycleBin.Restore($DeletedItem)
restore a collection of items

 Assuming $DeletedItems is a collection of GUIDs:


 ForEach ($deletedGuid in $DeletedItems)
 {
 $site.RecycleBin.Restore($deletedGuid) 
}

No comments:

Post a Comment