cmd line vpn conneciton is this possible?

J

John Smith

I have a need to create a process that periodically "dials" a VPN connection
to the office then copies some data to another system.

I can do the copy part and everything manually.
The client is XP the network is server 2003. How do I launch the VPN
connection (the regular internet is cable) from the command line so I can
script this whole thing?
Example:
I am connected to the regular internet, I double click my shortcut to "work
vpn" I enter my credentials (UID, PWD, Domain) I get authenticated, I open
cmd line and run a batch file taht does a robocopy, when it finishes, I
close the vpn.

I tried to use rasphone but no matter what I type at the cmd line after
rasphone (like rasphone workvpn) it does not do anything but prompt me to
pick a connection and connect to it (meaning rasphone is not accepting the
cmd line parms.)
Any ideas?


thanks!
 
B

Bill Stewart

John said:
The client is XP the network is server 2003. How do I launch the VPN
connection (the regular internet is cable) from the command line so I
can script this whole thing?

Rasdial should do the trick.

rasdial <entryname> <username> <password>

Use rasdial /? for help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top