Make Your Microsoft Dynamics Investment Count & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.
Dim IsVPNConnected, sComputer, oWMIService, colItems, objItem IsVPNConnected = False sComputer = "." Set oWMIService = GetObject("winmgmts:\\" _ & sComputer & "\root\CIMV2") Set colItems = oWMIService.ExecQuery( _ "SELECT * FROM Win32_NetworkAdapterConfiguration", , 48) For Each objItem In colItems 'Please check description of your VPN Connection by running command "ipconfig /all" on command-line. If (InStr(objItem.Description, "AnyConnect")) Then IsVPNConnected = objItem.IPEnabled End If Next If (IsVPNConnected) Then IsVPNConnected = MsgBox("I am Connected to VPN.") Else IsVPNConnected = MsgBox("I am Not Connected to VPN.") End If
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|excel file icon - over last few months weird||2||26|
|I need to add a zero in front of numbers that are less than 3 digits.||6||30|
|Inserting records in Access database using Excel VBA||4||16|
|need a macro to find the 2 letter word in a cell||4||12|
Join the community of 500,000 technology professionals and ask your questions.