Rasdial command in Window server 2008

In this article I am going to explain about rasdial command in Window server 2008 operating system.
  • 2675

Rasdial command in Window Server 2008

The  rasdial command is used to connects or disconnects a dial-up or virtual private network(VPN) connections, if you run the command without parameters, the status of current network is displayed.

Syntax of rasdial command

rasdial entryname [username [password|*]] [/domain:<domain>] [/phone:<phonenumber>] [/callback:<callbacknumber>] [/phonebook:<phonebookfile>] [/PrefixSuffix]

Parameters in rasdial command

There are the following parameter in the rasdial command:

Parameter Description
entryname It specifies an entry in the current .pbk file, located in the systemroot\system32\Ras folder, It required when connecting to a phone book(.pbk) entry.
username [password|*]] It specifies a user name and password with which to connect. If you are using *(symbol), the characters typed do not display.
/domain:domain It specifies the domain in which user account is located.
/phone:phonenumber It specifies the phone number for the entry phone number in resphone.pbk.
/callback:callbacknumber It specifies callback number for the entry callback number in resphone.pbk.
/phonebook:phonebookfile It specifies the path of the phone book file.
/PrefixSuffix It applies the current TAPI location dialing setting to the phone number.

Example of rasdial command

The first command is used for connects to the office entry in resphone:pbk and second command is used for connects to the office 2 entry in Resphone.pbk and also specifies callback number:

rasdial office                                            // first command
rasdial "office 2" /callback:555:0100     //second command

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.