- Sets a new parameter value on an identified rule. The command fails if the rule does not exist. To create a rule, use the add command. - Values after the new keyword are updated in the rule. If there are no values, or keyword new is missing, no changes are made. - A group of rules can only be enabled or disabled. - If multiple rules match the criteria, all matching rules will be updated. - Rule name should be unique and cannot be "all". - If a remote computer or user group is specified, security must be authenticate or authenc. - If action=bypass, the remote computer group must be specified. - Action=bypass is only valid for rules with dir=in. - If service=any, the rule applies only to services. - ICMP type or code can be "any". - Edge can only be specified for inbound rules.
Change the remote IP address on a rule called "allow80": netsh advfirewall firewall set rule name="allow80" new remoteip=192.168.0.2
Enable a group with grouping string "Remote Desktop": netsh advfirewall firewall set rule group="remote desktop" new enable=yes
NETSH / ADVFIREWALL / FIREWALL / SET / RULE
netsh advfirewall firewall set rule - Windows Vista - commandSets new values for properties of a existing rule. - Windows Vista netsh, advfirewall, firewall, set, rule, cmd, command, Windows, Vista