Add method of the PS_VpnConnectionTriggerDnsConfiguration class

Adds a DNS suffix and the corresponding DNS servers to the configuration.

Syntax

uint32 Add(
  [in]  string                               ConnectionName,
  [in]  string                               DnsSuffix[],
  [in]  string                               DnsIPAddress[],
  [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 DNS suffix.

PassThru [in]

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

Force [in]

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

Windows 8 and Windows Server 2012: This parameter is not available until Windows 8.1 and Windows Server 2012 R2.

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