代码改变世界

How To Search and Restore files from Site Collection Recycle Bin

2015-12-11 15:17  努力学习的小熊  阅读(...)  评论(...编辑  收藏
$sitecoll  = Get-SPSite "http://wheresmydoc.findit.com"

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

$sitecoll.RecycleBin.Restore("place doc ID here")