- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2017 08:45 PM - edited 02-21-2020 09:08 PM
I created a script to silently upgrade AnyConnect client for Windows and it works fine as long as the client isn't running.
I would like to add a command to the script to disconnect any running VPN session and force close AnyConnect so it doesn't interfere with the uninstallation of the existing version. Maybe just killing the processes is enough and no separate VPN disconnection command is needed, but I don't know what I processes I need to kill to allow for smooth removal.
What commands will do what I need?
Solved! Go to Solution.
- Labels:
-
AnyConnect
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2017 12:03 PM
Hi webabc123,
You can run the following VBS script:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "taskkill /F /IM vpnagent.exe /IM vpnui.exe"
---------------------------------------------------------------------------------------
vpnagent.exe= session service
vpnui.exe= graphic interfaces service
Hope this info helps!!
Rate if helps you!!
-JP-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2017 12:03 PM
Hi webabc123,
You can run the following VBS script:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "taskkill /F /IM vpnagent.exe /IM vpnui.exe"
---------------------------------------------------------------------------------------
vpnagent.exe= session service
vpnui.exe= graphic interfaces service
Hope this info helps!!
Rate if helps you!!
-JP-
