Results 1 to 9 of 9

Thread: Auto Net Connect at 2.00 am using Task Scheduler

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    82

    Default Auto Net Connect at 2.00 am using Task Scheduler

    Hey Guys,

    After fiddling with the various night download managers that are available in this forum, I got totally confused. Most of them are for those internet connections which are "Always On". In such cases the router needs to be rebooted at 2 am to start a new session. But my connection is PPPoE with authentication (i.e. you have to submit username and password each time you want to connect). For this kind of router configuration, reboot is not necessary. You simply have to logout and login at 2 am again to BSNL servers to start a new session. After some trial and error I came upon the following solution:

    My Setup: Laptop running Vista. Siemens ADSL router with WiFi. I have named my local WiFi connection as "Wireless" and is setup to connect automatically whenever the router is in range (You can enable this in the properties page of the wireless connection). My internet connection is named "Broadband" and requires input of username and password. I have configured it to redial automatically (say 20 attempts with 3 second intervals between attempts) whenever the line gets disconnected.I have also enabled "Save username and password only for me" on the dialer UI.

    The Process:

    1) Open Windows task scheduler (from System Tools) and create a new
    task called "WakeUp".
    Trigger it to start at 2.00 am everyday. Under the Actions tab select
    "Start a Program" and click on browse for Program script.
    The Windows/System32 directory will open. Find an executable called
    "winresume" and select it. After that the program script would look like
    this "C:\WINDOWS\System32\winresume.exe".
    Under the Conditions tab select "Start the task only if computer is on
    AC Power". I have selected this action because I'm not on UPS. In
    case of a power cut, my router would be off and I would'nt like my
    laptop to wake up on battery power. For those who have UPS etc.
    they may modify this option.

    2)Create another new task called "Connect Broadband". Select "Run with
    highest priveleges" under General Tab. Trigger it to start at 2.05 am
    daily. I have kept a 5 minute window between "Wakeup" and "Connect
    Broadband" to give sufficient time for the wireless connection to be
    established after the computer wakes up. (This may take more then a
    minute, I've noticed)
    Under the Actions tab select "Start a Program" and click on browse for
    Program script.The Windows/System32 directory will open. Find an
    executable called "rasdial" and select it. In the arguments field type in
    as follows: broadband username password. Here broadband is the name
    of your broadband connection. Username and pass word are the ones
    which you use to login. After this the program script would look like
    "C:\WINDOWS\System32\rasdial.exe broadband username password"
    Under the Conditions tab enable "Start only if following network
    connection is available" and choose the name of your wireless network
    just below. This ensures that broadband will connect only if the wireless
    connection has been priorly established. For ethernet users, similar
    modifications can be made.
    Under the Settings tab enable "Run task as soon as possible after a
    scheduled start is missed".


    3)Create another new task called "Disconnect Broadband". Select "Run
    with highest priveleges" under General Tab. Trigger it to start at 7.55
    am daily. Under the Actions tab select "Start a Program" and click on
    browse for Program script.The Windows/System32 directory will open.
    Find an executable called "rasdial" and select it. In the arguments field
    type in as follows: broadband /disconnect. Here broadband is the name
    of your broadband connection.(There is a space between broadband
    and the slash" After this the program script would look like
    "C:\WINDOWS\System32\rasdial.exe broadband /disconnect"
    Under the conditions tab enable "Wake the computer to start this task".
    (This is unnecessary but just as a precaution).
    Under the Settings tab enable "Run task as soon as possible after a
    scheduled start is missed" and also
    "If the running task does not end force it to stop"(These are
    precautions to ensure that BB disconects)

    Usage:

    1)Start your computer and router, say at about 10 pm. Run utorrent(or whatever) and load up a few torrents.Logoff the internet. Put your laptop to sleep(not shutoff or logout)but keep the router switched on.

    2)At exactly 2.00 am the laptop will wake up and will establish wireless connection with your WiFi Router. This will certainly be established within 2 minutes.

    3)At exactly 2.05 am the computer will check whether your wireless has been established. It will then try to connect to BSNL broadband using username and password. It it connects, its fine. If not, the dialer application will attempt to reconnect by itself at least 20 times after 3 second intervals.This is also true if the line drops at any other time before 8 am (when you are sleeping).

    4)At exactly 7.55 am the computer will disconnect from BSNL broadband.

    Note:
    Instead of using the above mentioned "disconnect" script, you may also use a freeware called Auto Net Disconnector which cuts your internet connection at the scheduled time and also switches off your computer. You will find it here -- Auto Net Disconnector Download - Softpedia

    I have used the above process for a couple of days and found it ok. I felt that when there is a built in task scheduler why not try to use it. The process I have described is for a wifi router and laptop. I think it can also be applied to desktop PCs and normal routers with a few modifications. However I don't know whether it will work with Win XP. I am no computer expert, just like fiddling a bit with system settings and all...therefore inputs and suggestions will be helpful and are most welcome.
    Last edited by udayan; 01-28-09 at 12:57 PM.

  2. #2
    Amor vincit omnia
    Join Date
    Dec 2007
    Liked
    3 times
    Posts
    3,022

    Default

    Thanks for the info. I have always wondered about scheduling in Windows Vista in bridged mode* and router mode. I have saved the link for future reference.

    *When u dial the connection manually it is known as bridge mode. When the modem dials the connection automatically it is termed as pppoe/router mode.

  3. #3
    saurav_k
    Guest

    Default

    thanks a lot for the info ... repo added ...

  4. #4
    Junior Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    82

    Default

    Quote Originally Posted by saurav_kataruka View Post
    thanks a lot for the info ... repo added ...
    Thanx man !
    BTW why is ur signature blacked out ?

  5. #5
    Junior Member
    Join Date
    Jul 2008
    Age
    21
    Liked
    0 times
    Posts
    32

    Default

    Thanks.. I've been using Auto Power-on and Shut down to do the trick.
    It's paid software though.

  6. #6
    Gold Member
    Join Date
    Apr 2007
    Liked
    0 times
    Posts
    772

    Default

    Thanks man!
    Reps Added!

  7. #7
    saurav_k
    Guest

    Default

    Quote Originally Posted by udayan View Post
    Thanx man !
    BTW why is ur signature blacked out ?
    oh .... it was blacked out coz i did it. its ok now

  8. #8
    Junior Member
    Join Date
    Oct 2008
    Age
    23
    Liked
    0 times
    Posts
    30

    Thumbs up

    thnx man :rockon:

  9. #9
    meetdilip
    Guest

    Default

    If you want to automate Night Unlimited Download process, try this

    http://imran-utilities.synthasite.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Relaince Net Connect Brodband+
    By shatrughna in forum Reliance Netconnect
    Replies: 0
    Last Post: 02-09-10, 12:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •