conditional access block legacy authentication onprem powershell scripts

skip hofmann 46 Reputation points
2020-04-24T19:14:10.683+00:00

Hello all

We have a number of powershell scripts that are running onprem that run via a scheduled task. The scripts log into Exchange online and SharePoint online and perform many functions. If we block legacy access into the tenant, this will prevent the scripts from being able to log in. I know we can configure powershell to use MFA, however its not realistic or practical to have a user repsond to the mfa challenge, as these scripts are running off hours. How do we get around this? We want to block legacy access but we dont want our scripts to stop working

Thank you

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

Accepted answer
  1. Vasil Michev 95,081 Reputation points MVP
    2020-04-24T19:54:58.043+00:00

    You can add exceptions/whitelist to your CA policy to address those scenarios. Or you can wait for Microsoft to release a solution, as they have promised in the latest blog posts.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. skip hofmann 46 Reputation points
    2020-04-26T18:39:28.033+00:00

    Can you point me to that blog post you are referring to ?