Partager via


Set method of the PS_DAClientDnsConfiguration class

This cmdlet does the following1. Configures the DNS server and proxy server addresses of an NRPT entry 2. Configures the local name resolution property.

Syntax

uint32 Set(
  [in]  string                   DnsSuffix,
  [in]  string                   DnsIPAddress[],
  [in]  string                   ProxyServer,
  [in]  string                   Local,
  [in]  string                   ComputerName,
  [in]  boolean                  PassThru,
  [out] DAClientDnsConfiguration cmdletOutput
);

Parameters

DnsSuffix [in]

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

DnsIPAddress [in]

The new list of DNS server IPv4/IPv6 addresses for the specified DNS suffix in the NRPT table

ProxyServer [in]

The new proxy server for the specified DNS suffix in the NRPT table

Local [in]

Specifies the property of the local name resolution. Can be one of the following 1. FallbackSecure: Only use local name resolution if the name doesn't exist in DNS (Most Restrictive) 2. 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 (Recommended) 3. FallbackUnsecure: Fallback to local name resolution for any kind of DNS resolution error (Least Secure)

FallbackSecure ("FallbackSecure")

FallbackPrivate ("FallbackPrivate")

FallbackUnsecure ("FallbackUnsecure")

ComputerName [in]

IPv4/IPv6 address or hostname of the machine on which the remote access server machine specific tasks should be executed

PassThru [in]

Returns an object for the DA DNS configuration consisting of the NRPT rules and local name resolution settings. By default this cmdlet does not generate any output

cmdletOutput [out]

  1. NRPT object for the entry that was modified. 2. Property of local name resolution

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess
MOF
RAMgmtPSProvider.mof
DLL
RAMgmtPSProvider.dll

See also

PS_DAClientDnsConfiguration