Hello @Roger Roger ,
You could run the following PnP PowerShell script to export all the deleted content details in OneDrive Recycle Bin :
#Get the PnP PowerShell module
Install-Module SharePointPnPPowerShellOnline
#Config Variables
$SiteURL = "https://****-my.sharepoint.com/personal/username_****_onmicrosoft_com"
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)
#Get Recycle bin Items
Get-PnPRecycleBinItem | Select Title, ItemType, Size, ItemState, DirName, DeletedByName, DeletedDate | Format-table -AutoSize
#Export results to CSV
#This is the path where you want to export this file
Get-PnPRecycleBinItem | Export-Csv C:\Temp\OneDrive_RecycleBin.csv
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I provide the following PowerShell commands to restore OneNote:
#Restore Recycle Bin Item by ID
Restore-PnPRecycleBinItem -Identity "768869c5-d3db-46e7-ad80-f5342b81b8c1" -Force
#Restore Recycle Bin Item by ItemType
Get-PnPRecycleBinItem | Where {$_.ItemType -eq "Folder"} | Restore-PnpRecycleBinItem -Force
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks,
Echo Du
======================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.