I have a document library. Someone had deleted a document 3 days ago. Then user needs to restore back to the same location right now.
But this document does exist in Recycle Bin, I check the Admin Recycle Bin, I did not find it. How can I restore this document and find who had deleted it ?
I had tried :
$web = Get-SPWeb https://xxxxxx
$web.RecycleBin | ?{$_.Title -match "Document Title"}
It does not work, Powershell does not display information about the document
Thank you all
Hi, I found the solution. In fact, user did not archive the document......
I am administor, but I cannot see it. I should go to Library Settings--> Manage file without archived version.
But I don't undersand. Before I check this option, I use these scripts, and PowerShell returns "items does not exist in the list, maybe deleted by another user". The truth is that document in the library, but it does not archive. Really weird.....
$web = Get-SPWeb http://xxxxxx
$list = $web.Lists["Documents Library"]
$list.GetItemById(201)