/build/static/layout/Breadcrumb_cap_w.png
12/12/2018 231 views

Hi, 

I wanted a script to check the VPN connection(Pulse Secure) active or inactive . Based on the VPN status we need to deploy a upgraded version of VPN application(Pulse Secure).
This is how script should work :

1. Check in VPN is connected or not 

2. if connected exit the upgrade deployment

3. If not connected then got with the deployment


This has to be done in Batch Script . Is it possible?any suggestions ?

3 Comments   [ + ] Show comments

Comments

  • Batch??!!?? Good luck...
  • Can you check their IP? Either what's reported in KACE or in ipconfig?
  • either grep for the IP or use something like powershell to get the $_.state and $_.name of a specific network adapter and check if it's enabled. If you only have batch files...good luck.

All Answers

0

in the batch file you are better off using a task kill to stop the program first.

I am using iexplore.exe in the example since I do not know the name of the pulse connect exe

tasklist | find /i "iexplore.exe" && taskkill /im iexplore.exe /F

Answered 12/13/2018 by: SMal.tmcc
Red Belt