代码改变世界

How To Search and Restore files from Site Collection Recycle Bin

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

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

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