Forum Discussion
madankumarinfrassist
Nov 11, 2021Copper Contributor
Enable Conditional Access policies to block legacy authentication(PowerShell)
I need to automate Conditional Access policies to block legacy authentication. So I am facing challenges in PowerShell scripts. why? Legacy authentication protocols do not support multi-factor auth...
Hjorthen
Nov 12, 2021Brass Contributor
I don't see the need to do it via a powershell script?
If you have access to the Azure portal you can setup the conditional access policy to block legacy authentication pretty easy.
Fair warning though - you should have a look at the sign-in logs of the company to see who is using the legacy authentication before blocking it completely. Many companies have service accounts that do not support MFA, so you need to know those account and exclude them before hand - unless you want a lot of angry phonecalls 😄
If you have access to the Azure portal you can setup the conditional access policy to block legacy authentication pretty easy.
Fair warning though - you should have a look at the sign-in logs of the company to see who is using the legacy authentication before blocking it completely. Many companies have service accounts that do not support MFA, so you need to know those account and exclude them before hand - unless you want a lot of angry phonecalls 😄