Get-CMWindowsFirewallPolicy
Get-CMWindowsFirewallPolicy
Gets Windows Firewall policies for Endpoint Protection.
Syntax
Parameter Set: SearchByName
Get-CMWindowsFirewallPolicy [-Name <String[]> ] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMWindowsFirewallPolicy -Id <String[]> [ <CommonParameters>]
Detailed Description
The Get-CMWindowsFirewallPolicy cmdlet gets one or more Windows Firewall policies for Microsoft System Center 2012 Endpoint Protection in Microsoft System Center 2012 Configuration Manager.
Parameters
-Id<String[]>
Specifies an array of IDs of Windows Firewall policies.
Aliases |
CIId |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Name<String[]>
Specifies an array of names of Windows Firewall policies.
Aliases |
LocalizedDisplayName |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get a Windows Firewall policy by using an ID
This command gets the Windows Firewall policy that has the ID 16777568.
PS C:\> Get-CMWindowsFirewallPolicy -ID "16777568"
Example 2: Get a Windows Firewall policy by using a name
This command gets the Windows Firewall policy that has the name WFPContoso01.
PS C:\> Get-CMWindowsFirewallPolicy -Name "WFPContoso01"