Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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
share|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
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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