FirewallGroupsFirewallGroups

FirewallGroups 指定 Windows 防火牆群組。FirewallGroups specifies Windows Firewall groups.

子項目Child Elements

設定Setting 描述Description
FirewallGroupFirewallGroup 指定 Windows 防火牆群組。Specifies a Windows Firewall group.

父階層Parent Hierarchy

Networking-MPSSVC-Svc | FirewallGroupsNetworking-MPSSVC-Svc | FirewallGroups

有效的設定階段Valid Configuration Passes

特製化specialize

套用至Applies To

如需支援的 Windows 版本與此元件支援的架構,請參閱網路功能-MPSSVC-SvcFor a list of the supported Windows editions and architectures that this component supports, see Networking-MPSSVC-Svc.

XML 範例XML Example

下列的 XML 輸出會顯示如何設定 Windows 防火牆群組。The following XML output shows how to set Windows Firewall groups.

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

注意

Group值必須是您想要參考的防火牆群組相關聯的群組識別碼 (例如Remote Desktop群組對應至識別碼@FirewallAPI.dll,-28752)。The Group value must be the Group ID associated with the firewall group you want to reference (for example, the Remote Desktop group corresponds to the ID @FirewallAPI.dll,-28752). 您可以在 PowerShell 中使用網路安全性命令取得群組識別碼。Group IDs can be obtained using Network Security commands in PowerShell. 請參閱子主題群組參數的詳細指示。See the child topic on the Group parameter for more detailed instructions.

Networking-MPSSVC-SvcNetworking-MPSSVC-Svc