Forum Discussion

sachin011390's avatar
sachin011390
Copper Contributor
Sep 06, 2021

Manage M365 MFA setting using Powershell

I am enforcing Multi-Factor Authentication for all my M365 users (azure ad plan 2) and it works as expected. Ability to set exceptions when users work from particular branch offices too works as expected. screenshot below.

 

 

 

 

 

however, i have many branch offices where the IP address can change every week, so need a way to automate updating the above list.

 

is there a power shell module i can use to update this list rather then login to the portal and type it out every time there is a change ?

 

4 Replies

Resources