Connect if ping fails

Got a problem with Viscosity or need help? Ask here!


Posts: 1
Joined: Mon Jul 04, 2022 11:58 pm

Post by eshutika » Tue Jul 05, 2022 12:02 am
I would like some help creating a script. Here is what i basically want it to do
if ping fails, then auto connect vpn .
if ping is successful, do not connect.

Basically i want to create a script that connects the vpn automatically if the user is not in the office.


User avatar
Posts: 2190
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Tue Jul 05, 2022 10:45 pm
Hi eshutika,

I'm afraid we don't have the support resources available to help write custom scripts, however you can find information on how to control Viscosity from your script at: ... g-windows/

You should be able to find some examples on the internet on how to call ping from a Powershell or Batch script and parse the result.

James Bekkema
Viscosity Developer

2 posts Page 1 of 1