I need to Connect-ExchangeOnline
without a browser. I would use the -Credential
parameter, but the help says:
Don't use this parameter for accounts that use multi-factor authentication (MFA).
I can do the following, but it still requires interactive use to enter the password.
Connect-ExchangeOnline -InlineCredential -UserPrincipalName jdoe@myco.com
How can I automate getting connected without user interaction?