Reset CheckPoint VPN Policy
Date: 05.28.16 - 12:20am
If you use a Checkpoint VPN, it will apply a security policy to your machine when you connect that blocks any new server connections such as RDP or ftp from connecting to your machine.
Even after you disconnect the VPN this security policy remains in effect. In order to clear it, you need to either reboot, or as a friend pointed out reset the network interface with a disable/enable cycle. (thanks greg!)
You can boil this down to a quick vbs script.
strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapter") tmp="" For Each objItem in colItems tmp = tmp & objItem.NetConnectionID & vbcrlf if objItem.NetConnectionID = "Local Area Connection" then 'Wscript.Echo "boom!" objItem.Disable WScript.Sleep 1000 objItem.Enable 'Wscript.Echo "reset!" exit for end if Next 'Wscript.Echo tmp