Hello all,
First off, sorry if I'm posting in the wrong forum. If this is the case, please direct me to where this might be better posted.
I'm trying to create a script (it can be in .vbs, .bat, .cmd or .js) to check if the computer is connected to a specific named VPN. This will be used in conjunction with software that performs backups and can use scripts to determine if it should run or not (specifically ViceVersa). I figured I'd be able to Google around and put something together, but I keep getting set up the bomb at every turn (the scripts I find usually return everything else about the connection except for what its name is). The VPN’s name shows up in Task Manager’s Networking tab, so I assumed this information would be available though some script.
I started looking at the Win32_NetworkAdapter WMI class, as I thought this might be the correct way to go. I’d post what I have so far if it would help, but most of my scripts either return errors or are just to Frankenstein’d to make much sense. :/
Anyone know what I should be looking for to return this information? Thanks in advance.