Hi Thanks again for the quick reply. These are all scripts that interact with Exchange online. How do we incorporate modern auth into our scripts ?
Automated powershell scripts modern authentication

Hello all
We have many powershell scripts that authenticate to O365 and Azure using an onprem service account. When Microsoft starts forcing modern auth, how do we configure are scripts to authenticate ?
3 answers
Sort by: Most helpful
-
-
Vasil Michev 71,216 Reputation points MVP
2020-03-26T18:49:52.747+00:00 Which services exactly? Currently, pretty much only Azure AD tasks can be automated with Modern auth, every other O365 related script will either have to use basic auth, or to have a person manually interact with the modern auth prompt. Updates are coming, but currently no ETAs.
-
skip hofmann 46 Reputation points
2020-03-26T19:17:37.43+00:00 Sorry i know how to use modern auth for the powershell script. What i am trying to understand is how can the script be used for an automated task if MFA is being enforced ?