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

Tags: , , ,
Posted Under: Tips and Tricks, Windows

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 .


This entry was posted on Friday, May 1st, 2009 and is filed under Tips and Tricks, Windows. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “Connect Disconnect PPPOE or Dial up using Command Line or Batch Scripting”

  1. Arvind

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

  2. kwadwo

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

  3. sri

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

    thnax in advance:)

Leave a Reply

See What others were Looking For !!

rasdial pppoe (35),pppoe batch (11),rasdial reconnect (9),PPPoE reconnect bat (7),pppoe rasdial (7),modem reconnect bat (6),pppoe bat (6),disconnect pppoe (6),batch reconnect (5),pppoe reconnect batch (5),reconnect batch script (5),pppoe reconnect script (5),reconnect bat (4),reconnect bat vista (4),pppoe reconnect (4),reconnect bat modem (4),bat reconnect modem (4),connect pppoe command line (4),disconnect connection bat vista (4),how to disconnect and reconnect to internet (4)