Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
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
Join the community of 500,000 technology professionals and ask your questions.