We help IT Professionals succeed at work.

Initiate a RAS connection from cmd line?

Grailman
Grailman asked
on
Is it possible to make a RAS connection (using a pre-existing entry in the rasphone.pbk) from the command line?
Comment
Watch Question

Commented:
I believe that only Windows 2000 has a command-line tool to do this (NETSH), but Windows NT doesn't.
Commented:
rasphone -d Entry

or

rasphone -d "Entry name"

rasphone -? to get all options

Author

Commented:
Actually the cmd to connect or disconnect was

rasdial "ENTRY" user password
rasdial "ENTRY" /disconnect

but rasphone got me looking in the right place.

Thanks schmiegu!

Commented:
Actually I am using this batch to connect to our tunnel server over the internet:

@echo off
rasphone -h "A-Online PULS" #hang up to be sure the connection isn't in use while dialling
rasphone -d "A-Online PULS" # connect to internet
rasphone -d BILLA # connect to tunnel

I will check for rasdial (it's possible, but not very likely, that in german versions of NT rasphone replaces rasdial)

Author

Commented:
Using rasphone -d "My Entry" , pops up a connection prompt dlg box requiring user interaction. The machines I needed to connect are remote with no users.

I am not aware of any difference here in the German version.