Dial VPN From Command Line

To dial a modem or VPN connection from the command line or batch file in Windows XP/2003:

Use RasDial.exe from the C:\WINDOWS\System32 directory

  • rasdial.exe {Connection Name} [username] [password]
    • Used to Connect.
    • Username and Password are optional.
  •  
  • rasdial.exe {Connection Name} /DISCONNECT
    • Used to Disconnect.

NOTE: Remove the curley brackets "{ }" from the above commands.