Page 1 of 1

Check an active connection

Posted: Tue Jan 26, 2021 5:58 am
by Rieder
Hi

Is there a way for a Powershell script to detect if there's a active connection present in Viscosity 1.9? We have to upgrade and we don't want to disconnect users when they are connected. So the script looks for an active connection. If it's present, it tries againn XX minutes later. When it detects that no connection is present, it runs the update with a promt to the user.

Re: Check an active connection

Posted: Wed Jan 27, 2021 10:39 am
by Eric
Hi Rieder,

You would need to iterate all your connections with the getstate command - https://sparklabs.com/support/kb/articl ... g-windows/

Alternatively, you check if an openvpn.exe process is running on the machine.

Regards,
Eric