Is there a way to create a group, or add to an existing group, to a rule in Windows Advanced Firewall (preferable through a command prompt or WSH script).

Edit:

enter image description here

link|improve this question

feedback

1 Answer

Rules in the Windows Firewall can be bundle together and activated or deactivated as a group.

With netsh advfirewall command you can add rules to the Firewall. Use the switch group= for manage the AdvFirewall groups.

Use something like this:

netsh advfirewall firewall set rule profile=domain group="Remote Desktop" new enable=Yes
link|improve this answer
Thank you. But, that tells me how to change an existing group. I want to know how to either add a group, or put one of my rules in an existing group. – frogstarr78 Oct 28 '11 at 2:34
With this commmand (Netsh advfirewall firewall set) you can create or change and existing rule and move it from its group. This works for what you need. Try it. – Ricardo Polo Oct 28 '11 at 3:01
Alright, so what's the syntax for creating a new group? I tried: netsh advfirewall firewall set rule Group="SmarterTools Administrative Interfaces" new and receive the error 'No rules match the specified criteria' – frogstarr78 Dec 24 '11 at 18:06
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.