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 SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
computernations
Posts: 10
Joined: Wed Aug 29, 2012 12:57 am

Exchange online connect-exopssession with MFA

Post by computernations » Thu Aug 08, 2019 11:38 am

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: 194
Joined: Thu Jun 01, 2017 7:20 am

Re: Exchange online connect-exopssession with MFA

Post by brittneyr » Thu Aug 08, 2019 12:05 pm

That command hasn't been imported into your script.

The following article should help:
https://docs.microsoft.com/en-us/powers ... xchange-ps
Brittney Ryn
SAPIEN Technologies, Inc.