Get-CMWindowsFirewallPolicy

Get-CMWindowsFirewallPolicy

Gets Windows Firewall policies for Endpoint Protection.

構文

Parameter Set: SearchByName
Get-CMWindowsFirewallPolicy [-Name <String[]> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMWindowsFirewallPolicy -Id <String[]> [ <CommonParameters>]

詳細説明

The Get-CMWindowsFirewallPolicy cmdlet gets one or more Windows Firewall policies for System Center 2012 Endpoint Protection in Microsoft System Center 2012 Configuration Manager.

パラメーター

-Id<String[]>

Specifies an array of IDs of Windows Firewall policies.

エイリアス

CIId

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Name<String[]>

Specifies an array of names of Windows Firewall policies.

エイリアス

LocalizedDisplayName

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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

New-CMWindowsFirewallPolicy

Remove-CMWindowsFirewallPolicy