Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

365 powershell MFA to multiple services

$
0
0

I'm assuming I know the answer, but I will kick myself if wrong :)

Historically, I have scripts that connect to 365 exchange, Azures-AD and msol-service.  And I grabbed credentials in a string and passed them to each service, so typed in username/password once.

Now with MFA, I assume I need to type in username/password and 2FA approval for each connection (so 3x).

Before I wear out my keyboard, is that the only way, or can you grab credentials with approved 2fa and pass to these connections?

Thanks


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>