Automatically connect to VPN when initiating RDP Remote Desktop connection and then disconnect VPN when done

Posted by Josh Newman on Super User See other posts from Super User or by Josh Newman
Published on 2012-03-27T15:24:13Z Indexed on 2012/03/27 17:35 UTC
Read the original article Hit count: 414

Filed under:
|
|

I know I can create a batch file to initiate a VPN connection followed by an RDP session, however I want to know if it's possible (in Windows 7 and ideally Windows XP as well) to have the VPN connection tied to the RDP session status.

Scenario: user has to VPN first in order to be able to RDP. Ideally user would click one icon (batch file?) to initiate VPN connection and load RDP session. When they close the RDP session I want the VPN to then automatically disconnect so they don't accidentally route their subsequent non-RDP browsing + Internet activity through the VPN.

© Super User or respective owner

Related posts about remote-desktop

Related posts about vpn