I want to be able to connect to a network via command line in Windows. My goal is to script out remoting into my work computer. I hate having to always manually connect to the VPN connection and then rdping into my work machine. I want to just have a script which will do both of it for me. I know how to rdp via command line, I just need to know how to connect to my VPN via command line.

link|improve this question
2  
What VPN software are you using? There may be different ways to control the VPN connection from the command line based on the software (Cisco, OpenVPN, etc). – Matrix Mole Apr 4 '10 at 4:16
feedback

migrated from stackoverflow.com Apr 4 '10 at 3:31

This question came from our site for professional and enthusiast programmers.

1 Answer

Have you looked at the netsh command which can be used to control the network in many ways?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown