How to create a batch script for a new internet connection?
December 6, 2006 11:28 AM   RSS feed for this thread Subscribe

I would like to create a batch script that will create a new internet connection (connecting through a vpn) with specific settings. What are my options?

Our campus connects to the wireless network through two phases, connecting to the access point and authenticating with the vpn. We would like to offer a batch script or file that would set up the wireless vpn under the internet connections for all students (as opposed to having 4000+ students bringing computers to our help desk).

I've used batch scripts before to automatically install software (unattended installs and the like) but never for something like this. Is it possible? If not are there any other options I haven't considered?
posted by genial to computers & internet (4 comments total)
CMAK should do what you want.
posted by sanko at 11:46 AM on December 6, 2006


You could...use this syntax and save it as a .bat file, then tell your VPN client to run it upon establishing the connection:

net use [drive letter:] \\computername\\sharename password /USER:[domainname\]username

But of course, make the square brackets disappear.
Duplicate the line if there's more than one drive.

That SHOULD work. I've been using that batch script to connect via VPN for a few weeks now, and it seems to be working.
posted by Milkman Dan at 12:06 PM on December 6, 2006


Sanko's right, Milkman misread what you want to do.
posted by baylink at 8:05 PM on December 6, 2006


CMAK is perfect! I learn something new everyday. Thanks sanko!
posted by genial at 11:42 AM on December 7, 2006


« Older My mother-in-law is in a conte...   |   Can I buy Irn-Bru in Ireland?... Newer »
This thread is closed to new comments.