Exchange online connect-exopssession with MFA

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 4 years and 7 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.
User avatar
computernations
Posts: 10
Last visit: Thu Aug 08, 2019 11:38 am

Exchange online connect-exopssession with MFA

Post by computernations »

To help you better we need some information from you.

*** 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: PowerShell Studio 2019
32 or 64 bit version of product:64
Operating system: Win10
32 or 64 bit OS: 64

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

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

I'm trying to connect to Exchange Online with MFA enabled and I'm getting the error below. I am able to run connect-msolservice with MFA enabled and the prompt for credentials works with no problem. Is there a way to connect to Exchange Online with MFA enabled using PowerShell Studio 2019?

ERROR: connect-EXOPSSession : The term 'connect-EXOPSSession' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
ERROR: spelling of the name, or if a path was included, verify that the path is correct and try again.
Get-ExchangeOnline.ps1 (3, 1): ERROR: At Line: 3 char: 1
ERROR: + connect-EXOPSSession -userprincipalname <userID@domain.com>
ERROR: + ~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : ObjectNotFound: (connect-EXOPSSession:String) [], CommandNotFoundException
ERROR: + FullyQualifiedErrorId : CommandNotFoundException
ERROR:
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 9:46 am
Answers: 39
Been upvoted: 30 times

Re: Exchange online connect-exopssession with MFA

Post by brittneyr »

That command hasn't been imported into your script.

The following article should help:
https://docs.microsoft.com/en-us/powers ... xchange-ps
Brittney
SAPIEN Technologies, Inc.
This topic is 4 years and 7 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.