PowerShell Logo Small

Add-VpnConnectionTriggerApplication



This is the built-in help made by Microsoft for the command 'Add-VpnConnectionTriggerApplication', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds applications that automatically trigger a VPN connection when launched.

SYNTAX


Add-VpnConnectionTriggerApplication [-ConnectionName] <String> [-ApplicationID] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>]
[-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-VpnConnectionTriggerApplication cmdlet adds applications to a VPN connection object. The applications automatically trigger a VPN connection when launched.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=290776
Remove-VpnConnectionTriggerApplication

REMARKS

<

Examples


Example 1: Add an application to a trigger list

PS C:\> Add-VpnConnectionTriggerApplication -ConnectionName "Contoso " -ApplicationID
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe","Microsoft.RemoteDesktop_Contoso0987" -PassThru
ConnectionName : Contoso

ApplicationID : {C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe, Microsoft.RemoteDesktop_Contoso0987}




This command uses the Add-VpnConnectionTriggerApplication cmdlet to add applications to a trigger list. The command specifies the ConnectionName and ApplicationID parameters.