Automated powershell scripts modern authentication

skip hofmann 46 Reputation points
2020-03-26T18:29:27.75+00:00

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 ?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,561 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. skip hofmann 46 Reputation points
    2020-03-26T18:57:21.077+00:00

    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 ?

    1 person found this answer helpful.
    0 comments No comments

  2. Vasil Michev 95,666 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.


  3. 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 ?