Forum Discussion
Best way to run Get-PNPRecycleBInItems against multiple OneDrives and with 2FA
- DeletedJul 13, 2019What happens if you add -ClearTokenCache -SPOManagementShell after -UseWebLogin?
Does it progress further than the blank screen?
Does it progress further than the blank screen?
- Daniel WesterdaleJul 13, 2019Iron Contributor
Deleted Thanks for your response. I have always wondered about these additional parameters. Will try this first thing on Monday and report back. BTW for reference, this the " white screen of death" I have been encountering.
- DeletedJul 13, 2019No problem at all, it sounds like this issue which a few others have come up against.
https://github.com/SharePoint/PnP-PowerShell/issues/1744- Daniel WesterdaleJul 15, 2019Iron Contributor
Deleted you are right. I never know when and where to post these types of issue. In my case I assume that it is something I am not doing correctly before considering an SPIssue 😑.
I have some findings:
This syntax works but you get presented with the login dialog each time you need to connect. Note, you can't use -UseWebLogin with this combinations of parameters.
Connect-PnPOnline -Url $auditItem.SiteUrl -ClearTokenCache -SPOManagementShell
If you want to speedily connect to various site collections without always being presented with the login dialog, then I recommend this syntax - was able to pass my list of OneDrive Urls with just a slight pause to establish each connection.
Connect-PnPOnline -Url $auditItem.SiteUr -SPOManagementShell