Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Editing, Deleting & Adding advfirewall grouped entries

07 Sep 2011   #1

Windows Vista
Editing, Deleting & Adding advfirewall grouped entries

I am creating an interface that allows the user to manage (among other things) the Windows Firewall.

My GUI is written in Java and uses the netsh advfirewall firewall commands to read the current settings and to save changes.

Some of the items are single records in the firewall. The "Windows Remote Management" item however, is one of the "grouped" items. This is a combination of multiple items. Here is one of those items in the combination.

Rule Name:                            Windows Remote Management - Compatibility
Mode (HTTP-In)
Enabled:                              No
Direction:                            In
Profiles:                             Private,Public
Grouping:                             Windows Remote Management
LocalIP:                              Any
RemoteIP:                             LocalSubnet
Protocol:                             TCP
LocalPort:                            80
RemotePort:                           Any
Edge traversal:                       No
Action:                               Allow
In this case the whole group is disabled, but it can be enabled for the type public or private or both. (not to mention domain)

When you enable this group using the Windows GUI, if you only enable one of the types, it has to duplicate all the items in the group. One copy for disabled type, one for the enabled type.

The problem arises when I try to create the second copy. The netsh advfirewall firewall add rule command does not allow me to set a grouping on new items. So that means I can't create the second copy! Which means, unless the item has already been duplicated by Windows, I can only enable or disable both types together (public and private) which is not what I want.

How can I create this second copy? Any ideas on how to do it with Java or the command line? I am hoping to avoid writing my own .exe.

My System SpecsSystem Spec
08 Sep 2011   #2

Microsoft Community Contributor Award Recipient

Win 7 Home Premium 64bit Ver 6.1.7600 Build 7601 - SP1

Hi Dorthy, welcome to 7F! :)

I have been researching your dilemma, and so far the closest I have found is:
File Replication Service start /w ocsetup FRS-Infrastructure
Here: Admin's Guide to Server Core Commands - The Life of Brian

There may also be some help here:
Download Details - Microsoft Download Center - Windows Server 2008 Step-by-Step Guides

I have also considered a way to get Windows to copy your CMDs, but have not been able to find anything yet.
Which means, unless the item has already been duplicated by Windows,

My System SpecsSystem Spec

 Editing, Deleting & Adding advfirewall grouped entries

Thread Tools

Similar help and support threads
Thread Forum
deleting Java/Oracle entries from old installations
I am trying to rid my computer of all entries referencing Java/Oracle but am nervous of interfering with the registry without advice. Searching for Oracle via Start I have the following. Can anyone help me to decide whether it would be safe/useful to continue deleting these entries please....
Deleting Registry Entries
Hello, Sorry to bother you again. I am attempting to clean up a Compaq 32 bit laptop. Having downloaded and used several Registry 'utils' I believe that there remain several entries which may be pointing nowhere. It is important that the maximum amount of hard disk space is 'freed' since the...
General Discussion
Removing duplicate entries from Windows Media Player without deleting
Hi Everyone, I am using Windows Media Player 12 and I would like to remove duplicate song entries from my Music Library without deleting files from a networked computer. My challenge is that I have added multiple networked folder locations to my Media Library, and on some of those network...
Music, Pictures & Video
Permanetly deleting certain entries-Windows 7 universal search
I am trying to delete anything regarding my recent medical history from my desktop so I can give it to someone without having to do a fresh install. I do a universal search from Windows Start and looking for the name of my doctor "Smith". I deleted all documents, but the search results are still...
General Discussion
netsh advfirewall add- how to prevent multiple entries by command line
Hi Im using a little script to enter "add rule" to the firewall in Win 7 f.e. netsh advfirewall firewall add rule name="Firefox Updater" dir=out program="%ProgramFiles% (x86)\Mozilla Firefox\updater.exe" enable=yes profile=any action=allow This works fine so far. But if i start the...
System Security

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:48.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App