Page 1 of 1

Exchange online connect-exopssession with MFA

Posted: Thu Aug 08, 2019 11:38 am
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:

Re: Exchange online connect-exopssession with MFA

Posted: Thu Aug 08, 2019 12:05 pm
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