Forum Discussion
DavidTAI
Feb 19, 2018Copper Contributor
Edit a transport rule with PowerShell
I have a transport rule that contains a large number of whitelisted IP addresses. I'm trying to remove the obsolete IP addresses from this list using PS.
From what I have seen so far it can be...
VasilMichev
Feb 20, 2018MVP
In general, you should be able to use the following syntax:
Set-TransportRule blabla -SenderIpRanges @{Remove="1.2.3.5"}
However, it doesn't seem to work as expected in this case, it nullifies the whole object. So your other option is to "manually" export the list to notepad/Excel and paste it back with the IPs added/removed as needed.