Partager via


Key

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

Key specifies the unique string to identify the name of the firewall group.

The value for Key is added to the answer file as an attribute of the FirewallGroup element. The attribute wcm:keyValue is used to identify each unique firewall group. For example, you can specify three different firewall groups by using the Key value of RemoteDesktop, WindowsMediaPlayer, and HomeGroup.

Values

Key

Specifies the unique string used to identify the firewall group. Key is a string.

This string type does not support empty elements. Do not create an empty value for this setting.

Parent Hierarchy

Networking-MPSSVC-Svc | FirewallGroups | FirewallGroup | Key

Valid 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 Windows Firewall groups.

<FirewallGroups>
      <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
      <Active>true</Active> 
      <Group>Remote Desktop</Group> 
      <Profile>all</Profile> 
   </FirewallGroup>
</FirewallGroups>

See Also

Concepts

FirewallGroup