JoeCode

TIL: SharePointPnPPowerShellOnline

Jul 09, 2021

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

Resources