Forum Discussion
Run PnP error
Hi everyone
Anyone experienced with PnP commands? I’ve been using PnP to delete data from the SharePoint Online (SPO) recycle bin. The command was working fine until about a month ago, but now it's no longer functioning. After running line 2, I received an error "
Original command:
Install-Module PnP.PowerShell -RequiredVersion 1.12 -Force -Allowclobber
Connect-PnPOnline -Url Admin-Sharepoint URL -Interactive
Connect-PnPOnline -Url Sharepointsite-URL-Interactive
Get-PnPRecycleBinItem -RowLimit 10000 | Where-Object{$_.DeletedByEmail -eq "Emailaddress"}
Get-PnPRecycleBinItem -RowLimit 10000 | Where-Object{$_.DeletedByEmail -eq "Emailaddress"} | Clear-PnPrecycleBinItem -Force
Please share and help. Thank you.
Hello Thao_Dao_Phuong
check this article: https://office365itpros.com/2024/08/29/pnp-powershell-changes-app/
Best, Dave
Hello Thao_Dao_Phuong
check this article: https://office365itpros.com/2024/08/29/pnp-powershell-changes-app/
Best, Dave
- Thao_Dao_PhuongBrass Contributor
DaveMehr365 Thank for your information Dav. I am following your instructions, but I encountered this error : AADSTS700016
Please advise.
Thanks you
- Thao_Dao_PhuongBrass ContributorHi Dave, thanks for your link it's useful for me.I fix my issue. thank you so much