Link to home
Start Free TrialLog in
Avatar of Grailman
Grailman

asked on

Initiate a RAS connection from cmd line?

Is it possible to make a RAS connection (using a pre-existing entry in the rasphone.pbk) from the command line?
Avatar of AvonWyss
AvonWyss
Flag of Switzerland image

I believe that only Windows 2000 has a command-line tool to do this (NETSH), but Windows NT doesn't.
ASKER CERTIFIED SOLUTION
Avatar of schmiegu
schmiegu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Grailman
Grailman

ASKER

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!
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)
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.