Set-DAClientDnsConfiguration

Set-DAClientDnsConfiguration

Configures the DNS server and proxy server addresses of a Name Resolution Policy Table (NRPT) entry and configures the local name resolution property.

構文

Parameter Set: Set3
Set-DAClientDnsConfiguration [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-DnsIPAddress <String[]> ] [-DnsSuffix <String> ] [-Local <String> ] [-PassThru] [-ProxyServer <String> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-DAClientDnsConfiguration cmdlet configures the DNS server and proxy server addresses of a Name Resolution Policy Table (NRPT) entry and configures the local name resolution property.

To modify an NRPT entry the user needs to specify the DNS suffix, the new DNS IP address or the proxy server, or the new DNS IP address and the proxy server for this suffix. To modify the local name resolution setting the Local parameter is used.

When an NRPT entry or local name resolution property is modified in a multi-domain scenario, it is correspondingly updated in all of the client Group Policy Objects (GPOs) in various domains. This is true for multi-site and GPOs as well.

The NRPT configuration is applicable globally to the entire DirectAccess (DA) deployment and therefore is not impacted by multi-site deployment.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-CimSession<CimSession[]>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-ComputerName<String>

Specifies the IPv4 or IPv6 address, or host name, of the computer on which the Remote Access server computer specific tasks should be run.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-DnsIPAddress<String[]>

Specifies the new list of DNS server IPv4 or IPv6 addresses for the specified DNS suffix in the NRPT.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByPropertyName)

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

false

-DnsSuffix<String>

Specifies the DNS suffix entry in the NRPT that needs to be modified.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByPropertyName)

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

true

-Local<String>

Specifies the property of the local name resolution. このパラメーターに対して使用できる値:
-- FallbackSecure: Only use local name resolution if the name does not exist in DNS, which is most restrictive.
-- FallbackPrivate: Fall back to local name resolution if the name does not exist in the DNS or the DNS servers are unreachable when the client computer is on a private network, which is recommended.
-- FallbackUnsecure: Fall back to local name resolution for any kind of DNS resolution error, which is least secure.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByPropertyName)

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

false

-PassThru

作業中の項目を表すオブジェクトを返します。既定では、このコマンドレットによる出力はありません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-ProxyServer<String>

Specifies the new proxy server for the specified DNS suffix in the NRPT.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

true (ByPropertyName)

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

false

-ThrottleLimit<Int32>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

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

false

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

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

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

false

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

false

<CommonParameters>

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

入力

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

  • None

出力

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

  • Microsoft.Management.Infrastructure.CimInstance#DAClientDnsConfiguration

    Microsoft.Management.Infrastructure.CimInstance オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。シャープ記号 (#) の後のパスは、基になる WMI オブジェクトの名前空間とクラス名です。
    The DAClientDnsConfiguration object contains the following properties:
    -- The NRPT entries in the NRPT table: each entry is an instance of the DnsClientNrptRule object.
    -- The DnsClientNrptGlobal object which contains the local name resolution settings.

EXAMPLE 1

This example will change the list of configured DNS Servers for contoso.com to 2006:2005:1::3. These changes will be made in all of the DA client GPOs.

PS C:\> Set-DAClientDNSConfiguration -DNSSuffix 'contoso.com' -DnsIPAddress 2006:2005:1::3

EXAMPLE 2

This example configures a proxy server for suffix contoso.com. Since NRPT entry settings in DA are global, this change will apply to all of the DA clients.

PS C:\> Set-DAClientDNSConfiguration -DNSSuffix 'contoso.com' -ProxyServer 'webproxy.contoso.com:400'

EXAMPLE 3

This example configures local name resolution to FallbackSecure, therefore ensuring that local name resolution is used only if the resource name does not exist in DNS.

PS C:\> Set-DAClientDnsConfiguration -Local 'FallbackSecure'

関連トピック

Add-DAClientDnsConfiguration

Get-DAClientDnsConfiguration

Remove-DAClientDnsConfiguration