JoeCode

SharePoint Online PowerShell

Usage 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

This project is maintained by joewils