Set method of the PS_VpnConnectionTriggerTrustedNetwork class

Sets the trusted network list with the Name Resolution Policy Table (NRPT) DNS suffixes that have been configured as part of triggering properties. The NRPT exemption entries are ignored.

Syntax

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

Parameters

ConnectionName [in]

The name of the VPN connection profile to modify.

DefaultDnsSuffixes [in]

True to copy all DNS suffixes in the VpnConnectionTriggerDnsConfiguration object into the DNS suffixes for VpnConnectionTriggerTrustedNetwork; otherwise, false. Note that DNS suffixes without corresponding DNS servers will not be copied

PassThru [in]

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

Force [in]

True to replace the trusted network list with the DNS suffixes present in VpnConnectionTriggerDnsConfiguration; otherwise, false. Note that only DNS suffixes with corresponding DNS server addresses are copied from VpnConnectionTriggerDnsConfiguration.

cmdletOutput [out]

When this method returns, contains the VpnConnectionTriggerTrustedNetwork object that holds the trusted network list.

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