The online "netsh advfirewall firewall" manual reads as follows: “Multiple entries can be specified forremoteip by separating them with a comma.”
In both Windows 7 Professional Version 6.1 (Build 7600) and Windows Server 2008R2 Enterprise Version 6.1 (Build 7600) the following command executes correctly:
netsh advfirewall firewall set rule name = "RuleName" new remoteip = IPAddress1
But the following command
netsh advfirewall firewall set rule name = "RuleName" new remoteip = IPAddress1, IPAddress2
Gives the following error:“A specified value is not valid.”
In the usage information of " netsh advfirewall firewall set rule" I find the following:
[remoteip=any|localsubnet|dns|dhcp|wins|defaultgateway|
<IPv4 address>|<IPv6 address>|<subnet>|<range>|<list>]
How can a list of IP addresses be submitted to the command?