FirewallGroupFirewallGroup
FirewallGroup
指定 Windows 防火牆群組。FirewallGroup
specifies a Windows Firewall group.
子項目Child Elements
設定Setting | 描述Description |
---|---|
ActiveActive | 指定是否使用中的 Windows 防火牆群組。Specifies whether a Windows Firewall group is active. |
群組Group | 指定的 Windows 防火牆群組,依據其識別碼。Specifies a Windows Firewall group by its ID. |
索引鍵Key | 指定可用來識別 [防火牆] 群組的唯一名稱。Specifies a unique name that you can use to identify the Firewall group. |
設定檔Profile | 指定的 Windows 防火牆群組設定檔。Specifies a Windows Firewall group profile. |
父階層Parent Hierarchy
Networking-MPSSVC-Svc | FirewallGroups | FirewallGroupNetworking-MPSSVC-Svc | FirewallGroups | FirewallGroup
有效的設定階段Valid Configuration Passes
特製化specialize
套用至Applies To
如需支援的 Windows 版本與此元件支援的架構,請參閱網路功能-MPSSVC-Svc。For 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.