Get-DnsClientNrptRule

Get-DnsClientNrptRule

Retrieves the DNS client Name Resolution Policy Table (NRPT) rules.

構文

Parameter Set: Get1
Get-DnsClientNrptRule [[-Name] <String[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-GpoName <String> ] [-Server <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

詳細説明

The Get-DnsClientNrptRule cmdlet retrieves DNS client Name Resolution Policy Table (NRPT) rules with the following details:
-- DNS client name setting.
-- DNS client version setting.
-- DNS client namespace setting.
-- DNS client IPsec Certification Authority (CA) restriction setting.
-- Direct Access (DA) DNS servers setting.
-- DA enabled setting.
-- DA proxy type setting.
-- DA proxy name setting.
-- DA query IPsec encryption setting.
-- DA query IPsec required setting.
-- DNS client name servers setting.
-- DNS security enabled setting.
-- DNS security query IPsec encryption setting.
-- DNS security query IPsec required setting.
-- DNS security validation required setting.
-- DNS client name encoding setting.
-- DNS client display name setting.
-- DNS client comment setting.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-GpoName<String>

Specifies the name of the Group Policy Object (GPO).
-- If this parameter and the Server parameter are specified, then the NRPT rule is added in the GPO of domain. The Server parameter specifies the domain controller (DC).
-- If neither this parameter nor the Server parameter is specified, then the NRPT rule is added for local client computer.
-- If this parameter is specified and the Server parameter is not specified, then the DC of the domain specified by this parameter value is found and NRPT rule is added to the GPO.
-- If this parameter is not specified and the Server parameter is specified, then an error is displayed.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Name<String[]>

Specifies the name which uniquely identifies a rule. If this parameter is not specified, then all of the available NRPT rules are retrieved.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

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

True (ByPropertyName)

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

false

-Server<String>

Specifies the server hosting the GPO. This parameter is only applicable with the GpoName parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

  • Microsoft.Management.Infrastructure.CimInstance#root/Microsoft/Windows/DNS/DnsClientNrptRule[]

    Microsoft.Management.Infrastructure.CimInstance オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。シャープ記号 (#) の後のパスは、基になる WMI オブジェクトの名前空間とクラス名です。

出力

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

  • Microsoft.Management.Infrastructure.CimInstance#root/Microsoft/Windows/DNS/DnsClientNrptRule[]

    Microsoft.Management.Infrastructure.CimInstance オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。シャープ記号 (#) の後のパスは、基になる WMI オブジェクトの名前空間とクラス名です。
    The DnsClientNrptRule object contains all of the properties of the DNS client NRPT rule.

EXAMPLE 1

This example retrieves an NRPT rules for the specified GPO.

PS C:\> Get-DnsClientNrptRule -GpoName "corp.contoso.com\DirectAccess Client Settings"

EXAMPLE 2

This example retrieves an NRPT rule for the specified GPO on the specified server.

PS C:\> Get-DnsClientNrptRule -GpoName "corp.contoso.com\DirectAccess Client Settings" -Server dc1

EXAMPLE 3

This example retrieves the NRPT rules on the remote computer named 2-dc1.corp2.corp.contoso.com.

PS C:\> Get-DnsClientNrptRule -GpoName "corp.contoso.com\DirectAccess Client Settings" -CimSession 2-dc1.corp2.corp.contoso.com

関連トピック

Add-DnsClientNrptRule

Get-DnsClientNrptGlobal

Get-DnsClientNrptPolicy

Remove-DnsClientNrptRule

Set-DnsClientNrptGlobal

Set-DnsClientNrptRule