PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. You can learn more and download at 

This is a PsExec script to modify connection filter to add the trusted IP addresses. This is required if you are going to use our service infront of Office365 or if you are doing a tenant migration. Without this tool the only other way to add IP's to Office365 is to copy/paste each one, which can be time consuming.


The content in quotes will be specific and custom to your tenant’s naming convention:

Inbound IP's (Required for Inbound Spam and Phishing Protection)

Set-HostedConnectionFilterPolicy "Inbound Connection Filter Policy" -IPAllowList,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


Please ensure that all of the IP's are added.

Outbound IP's (Unless you are smarthosting via our outbound system to your Tenant do not add these)

Set-HostedConnectionFilterPolicy "Outbound Connection Filter Policy" -IPAllowList,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,