Share via


Add method of the PS_VpnConnectionTriggerApplication class

Adds auto-trigger applications to a VPN connection profile. These applications, when launched, trigger a VPN connection.

Syntax

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

Parameters

ConnectionName [in]

The name of the VPN connection profile to modify.

ApplicationID [in]

The identifiers of the applications to add.

PassThru [in]

true to return the VpnConnectionTriggerApplication object that contains the trigger application settings; otherwise false.

Force [in]

True to force the addition of the application to the VPN profile; 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 VpnConnectionTriggerApplication object. The ApplicationID field is populated.

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_VpnConnectionTriggerApplication