conditional access block legacy authentication onprem powershell scripts

skip hofmann 46 Reputation points

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

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

Accepted answer
  1. Vasil Michev 71,216 Reputation points MVP

    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

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