$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)
}
$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