Trigger VPN not working with Add-VpnConnectionTriggerApplication in Windows 11 (IKEv2 VPN)
I configured a Trigger VPN in Windows 11 using the following Powershell cmdlet:
Add-VpnConnectionTriggerApplication -ConnectionName "IKEv2" -ApplicationID "C:\Windows\System32\notepad.exe"
This configuration was supposed to trigger the VPN connection named "IKEv2" whenever either Notepad(notepad.exe) is launched.
However, the VPN connection is no longer triggered when these applications are executed. It was working previously, but now it seems to have stopped unexpectedly. I am using an IKEv2 VPN connection.
Environment Details:
- OS Version : Windows 11 Pro (24H2, Build 26100.2454)
- VPN Protocol : IKEv2
- Applications Triggered: Notepad.exe
The output of the command is:
Get-VpnConnectionTrigger -Name IKEv2
ConnectionName : IKEv2
ApplicationID : {C:\Windows\System32\notepad.exe}
Get-VpnConnection -Name IKEv2
Name : IKEv2
ServerAddress : router.test.com
AllUserConnection : False
Guid : {1EFB411E-DA03-467D-9B8F-61925CF5392B}
TunelType : Ikev2
AuthenticationMethod : {Eap}
EncryptionLevel : Optional
L2tpIPsecAuth :
UseWinlogonCredential : False
EapConfigXmlStream : #document
ConnectionStatus : Disconnected
RememberCredential : True
SplitTunneling : True
DnsSuffix :
IdleDisconnectSeconds : 5
It worked normally until I changed the Windows this OS version.
Please help me ..