man_luck man_luck - 1 year ago 202
C# Question

Globalprotect VPN batch file or C# code

Hi I am trying to connect to a VPN network using GlobalProtect VPN client. I can do that using the UI but I would like this to be automated. In another project where I was using Sonicwall Netextender, I created a batch file which I was calling from my C# code so I would connect to a VPN by calling the batch file, do some operations and disconnect using another batch file. I am trying to find a similar way to achieve it using Globalprotect. The command line arguments which I was using with Netextender does not seem to work with the PanGPA.exe. Any ideas how I could do that? I am not having any luck with the batch file so far.
The netextender batch file is:

cd c:\Program Files (x86)\SonicWALL\SSL-VPN\NetExtender\
NECLI connect -s -d DNAME -u UNAME -p PASSWORD

Answer Source

There is no such automation possible with globalprotect VPN client

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download