Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
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.
Join the community of 500,000 technology professionals and ask your questions.