Forum Discussion
Finding files in SPO recycle bin
Dean_Gross You can use PowerShell to export the recycle bin items to a csv file and use excel to filter on dates, users, etc.
All you need to do is install the SharePoint PNP Powershell module and run the following:
Connect-PnPOnline -Url https://<sitecollectionurl/
Get-PnPRecycleBinItem -firstStage | export-csv <filepath>
JSleithanks for the suggestion, that will help the SPO admins, but it won't help the site owners who can't use POSH. Microsoft still needs to address this basic level of functionality in the UI.
- Eric LE CORREMay 17, 2019Brass Contributor
https://lazyadmin.nl/powershell/restore-recycle-bin-sharepoint-online-with-powershell/amp/
and you also also filter by directory name :
$_.DirNAme -match "sites/…."
- Dean_GrossMay 17, 2019Silver Contributor
Eric LE CORRE thanks for the additional suggestion, but this won't help the site owner who is trying to find a file that was deleted. Site owners are empowered to do almost everything, they should not have to open a support ticket with their Help Desk to do something this simple