Connect Disconnect PPPOE or Dial up using Command Line or Batch Scripting

by Vivek Yadav on May 1, 2009

Trying to reconnect your internet connection with some batch script or command line code then , yes you have a saviour the RASDIAL utility, which can easily connect or disconnect your Dial up modem or a PPPOE broadband connection. It works in both XP and Vista

just go to your command line or inside your batch script add these

Suppose you have a Internet connection named BSNL with username- vivekz and password- secret123  .

Now to Disconnect from it use,

rasdial BSNL /disconnect

To connect to Internet through BSNL connection type in

rasdial BSNL vivekz secret123

ie. rasdial <connection name> <username> <password>

Hope that helped you out as I was stuck with the same issue and I was using the rather general purpose nircmd utility for it .

  • Share/Bookmark

{ 4 comments… read them below or add one }

Arvind August 4, 2009 at 1:58 am

Thanks a lot.. :)
Very useful utility for scheduling Broadband connectivity….

kwadwo August 16, 2009 at 9:34 pm

Thanks for sharing. it is a very useful utility that will save me a lot of time.

sri December 5, 2009 at 9:13 am

hey….is it possible to disconnect and reconnect internet by using Modem in ubuntu 8.10??
if yes please explain

thnax in advance:)

ravi August 7, 2010 at 2:26 pm

thanks but how to overcome the error 623 when i try to connect in the way u told.plz please please help me by sending e mail to me at ravigpa@gmail.com

Leave a Comment

Previous post:

Next post: