JoeCode
TIL: SharePointPnPPowerShellOnline
Jul 09, 2021Usage Notes:
Install module:
Install-Module SharePointPnPPowerShellOnline
Use web login to connect:
Connect-PnpOnline -Url https://contoso.sharepoint.com -UseWebLogin
Restore files deleted by a specific user:
Get-PnPRecycleBinItem -FirstStage | ? DeletedByEmail -eq 'user@contoso.com' | Restore-PnpRecycleBinItem -Force