connect-exchangeonline -userprincipalname doesn't bring up MFA browser

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 year and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
KalyaniM
Posts: 5
Last visit: Fri Oct 21, 2022 4:49 am

connect-exchangeonline -userprincipalname doesn't bring up MFA browser

Post by KalyaniM »

connect-exchangeonline -userprincipalname doesn't bring up MFA browser when executed from Powershell studio GUI.
Have already imported exchangeonlinemanagement module 2.0.5

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: Sapien Powershell Studio 2021,5.8.183.0
Operating system:Windows 10
PowerShell version(s):5.1.19041.1682

*** Please add details and screenshots as needed below. ***

DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Thu Mar 28, 2024 6:54 am
Answers: 39
Been upvoted: 30 times

Re: connect-exchangeonline -userprincipalname doesn't bring up MFA browser

Post by brittneyr »

This is a problem with PowerShell v5.1 and the ExchangeOnlineManagement module being version 2.0.4 or later. There is a little we can do to help with this as these are both Microsoft.
The only known fixes are to downgrade ExchangeOnlineManagement or upgrade to use PowerShell 7.

Reporting and getting support from the Microsoft team is the best option. You can get support from here:
https://docs.microsoft.com/en-us/answers/products/

With earlier versions (2.03 or earlier) of the ExchangeOnlineManagement module, connecting works when the connection is made before the creation of the form.
You may find the following helpful:
viewtopic.php?p=82682&hilit=Connect+Exc ... ine#p82682
viewtopic.php?t=15297
Brittney
SAPIEN Technologies, Inc.
This topic is 1 year and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.