Automated powershell scripts modern authentication

skip hofmann 46 Reputation points

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 ?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,741 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. skip hofmann 46 Reputation points

    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 71,216 Reputation points MVP

    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

    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 ?