Export (0) Print
Expand All
Expand Minimize

Get-CMWindowsFirewallPolicy

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

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 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.

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"

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft