Forum Discussion
john john
Nov 17, 2020Iron Contributor
Why i am been automatically login when running this command “Connect-PnPOnline -UseWebLogin"
I run the following PnP command:- Connect-PnPOnline -Url "https://***.sharepoint.com/sites/ApprovalProcess/" -UseWebLogin now a dialog will open and login me automatically, and when i try to pe...
ganeshsanap
Dec 06, 2020MVP
Update your PnP PowerShell modules to latest version and try using below command:
Connect-PnPOnline -Url "https://***.sharepoint.com/sites/ApprovalProcess/" -UseWebLogin -ForceAuthentication
Reference: Twitter post by official PnP PowerShell account
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.