代码改变世界

How To Search and Restore files from Site Collection Recycle Bin

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

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

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