Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Connect-PnPOnline -UseWebLogin -Url / wrong account is used - cannot connect #1523
###Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:###
Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Eventually I got "Connect-PnPOnline -UseWebLogin" working until I rebooted my PC and ever since then I can't get Powershell ISE to connect with the right account. I work on various tenancies with different accounts.
Edge is my default browser, but I've tried various things in both IE and Edge including deleting cookies.
Please describe what output you expect to see from PnP-PowerShell Cmdlets
Please describe what you see instead. Please provide samples of HTML output or screenshots
Steps to reproduce behavior
Please include complete code samples in-line or linked from gists
With wrong account (PC login) mentioned rather giving me a login form. User: WrongLogin_WrongDomain#EXT#@RightDomain
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
How did you install the PnP-PowerShell Cmdlets?
I can't remember how I installed it - but ran a powershell update-module yesterday
Eventually I got it working. Combination of a number of things