次の方法で共有


Set method of the PS_VpnConnectionTriggerDnsConfiguration class

Sets the DNS servers for a DNS suffix in the configuration and the DNS suffix search list.

Syntax

uint32 Set(
  [in]  string                               ConnectionName,
  [in]  string                               DnsSuffix,
  [in]  string                               DnsIPAddress[],
  [in]  string                               DnsSuffixSearchList[],
  [in]  boolean                              PassThru,
  [in]  boolean                              Force,
  [out] VpnConnectionTriggerDnsConfiguration cmdletOutput
);

Parameters

ConnectionName [in]

The name of the VPN connection profile to modify.

DnsSuffix [in]

The DNS suffix for auto triggering a VPN connection.

DnsIPAddress [in]

The IPv4/IPv6 addresses of the DNS servers to use for the specified DNS suffix.

DnsSuffixSearchList [in]

The DNS suffix search list for the auto-triggered VPN connection.

PassThru [in]

true to return the VpnConnectionTriggerDnsConfiguration object that contains the DNS configuration for VPN triggering; otherwise false.

Force [in]

True to force the resetting of the DNS servers for the DNS suffix; otherwise, false.

cmdletOutput [out]

When this method returns, contains the VpnConnectionTriggerDnsConfiguration object that holds the DNS configuration for VPN triggering.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess\Client
MOF
VPNClientPSProvider.mof
DLL
VPNClientPSProvider.dll

See also

PS_VpnConnectionTriggerDnsConfiguration