Get-CMWindowsFirewallPolicy

Applies To: System Center 2012 Configuration Manager SP1

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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.

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"

Set-CMWindowsFirewallPolicy

Remove-CMWindowsFirewallPolicy