Group (networking-mpssvc-svc-firewallgroups-firewallgroup-group)

The Group setting specifies the name of a FirewallGroup. The available rule groups differ by Windows edition.

Values

GroupID

Specifies the resource ID of a Windows Firewall rule group. GroupID is a string. The default value is an empty string.

To obtain a GroupID

  1. Open PowerShell.

  2. Maximize the PowerShell window so it encompasses the full screen (if the window is not maximized, it will not show both columns of information).

  3. Enter the following command, which shows all unique groups on the computer which can have firewall rules associated with them:

    Get-NetFirewallRule | sort -unique Group | sort DisplayGroup | ft DisplayGroup, Group
    
  4. PowerShell will show 2 columns of information. The left column shows the DisplayGroup, or the "friendly" name of the group. The right column shows the Group associated with the DisplayGroup. Group may have the same value as DisplayGroup, or it may be a string containing a resource ID.

  5. Use the value in the right column, Group, as the GroupID in your Unattend file.

For more information on the Get-NetFirewallRule command, see Net Security in the Windows PowerShell Reference.

Parent Hierarchy

Networking-MPSSVC-Svc | FirewallGroups | FirewallGroup | Group

Valid Configuration Passes

specialize

Applies To

For a list of the supported Windows editions and architectures that this component supports, see Networking-MPSSVC-Svc.

XML Example

The following XML output shows how to set two Windows Firewall groups, the first for File and Printer Sharing, and the second for Remote Desktop.

<FirewallGroups>
      <FirewallGroup wcm:action="add" wcm:keyValue="FileAndPrinterSharing">
      <Active>true</Active>
      <Group>@FirewallAPI.dll,-28502</Group>
      <Profile>all</Profile>
   </FirewallGroup>
      <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
      <Active>true</Active>
      <Group>@FirewallAPI.dll,-28752</Group>
      <Profile>all</Profile>
   </FirewallGroup>
</FirewallGroups>

FirewallGroup