In an XP Pro workstation, is there a way to start the native Windows VPN client and open/close a connection from the command line so it can be scripted in a batch file?
VPN Client – How to Connect/Disconnect via Command Line in Windows XP
command-line-interfacevpnwindows-xp
Related Topic
- Possible to add workstation to domain from the command line
- Windows – How to Check Who is Currently Logged On from Command Line
- Powershell – Automate running Cisco VPN Client and RDP
- Windows – Create a Windows VPN Connection from the cmd line
- Linux – How to create a VPN connect/disconnect wrapper around SVN commands
- Powershell – Rename VPN Connections via Powershell
Best Answer
Yes, if the VPN connection is called "My VPN" then:
will dial the connection. Helpfully it sets errorlevel to the RAS error code if it fails to connect, so your script can detect a connection failure. If you need to supply a username and password instead of using the saved credentials use:
To disconnect a connection use:
JR