Partager via


Add method of the PS_VpnConnectionTriggerTrustedNetwork class

Adds DNS suffixes to the trusted network list of the VPN connection profile.

Syntax

uint32 Add(
  [in]  string                             ConnectionName,
  [in]  string                             DnsSuffix[],
  [in]  boolean                            PassThru,
  [in]  boolean                            Force,
  [out] VpnConnectionTriggerTrustedNetwork cmdletOutput
);

Parameters

ConnectionName [in]

The name of the VPN connection profile to modify.

DnsSuffix [in]

The list of DNS suffixes to add.

PassThru [in]

true to return the VpnConnectionTriggerTrustedNetwork object that contains the trusted network list; otherwise false.

Force [in]

True to force the addition of the DNS suffixes to the trusted network list; 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 VpnConnectionTriggerTrustedNetwork object that holds the trusted network list.

Remarks

When a trusted suffix is present on the client's physical interface, VPN auto-trigger is suppressed.

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_VpnConnectionTriggerTrustedNetwork