I'm trying to setup a script to unblock IP's that may get caught up in a custom rule on Windows Firewall. I am trying this:
netsh advfirewall firewall delete rule name="rule_name" remoteip="ip"
In the scope within Windows Firewall, I see the IP is listed and blocked but when I try to run the script I am getting:
No rules match the specified criteria.
Is this the correct way to script to remove these IPs on an automated script or is there a simpler way to approach this?
netsh
. In any case if you need more help unblocking something it might help to add a screenshot or log entry with the information about the rule or whatever that you are trying to bypass.Get-NetFirewallAddressFilter
andSet-NetFirewallAddressFilter
PS commands?