Forum Discussion

Bhavpreet Bains's avatar
Bhavpreet Bains
Iron Contributor
May 28, 2018

Trusted IPs list and Powershell

Hello,

 

I am trying to get all Trusted IPs in a powershell script. Does anyone know if  there is some Powershell cmdlets or Graph API to fetch them?

 

Thank you.

2 Replies

  • Hello Bhavpreet,

     

    Microsoft Maintains their IP addressing on this XML file :  https://support.content.office.net/en-us/static/O365IPAddresses.xml 

     

    You can either write your own powershell to parse this XML or use this one which already does it for you

    https://gallery.technet.microsoft.com/office/Get-Office-365-IP-v4-562987d5

     

    • Bhavpreet Bains's avatar
      Bhavpreet Bains
      Iron Contributor

      Thank you, Prashant.

      This is Microsoft maintained IP list. However, I looking for one's that we register in Azure MFA.

Resources