Windows Vista Forums

Won't stay awake for task

  1. #1


    MikeM Guest

    Won't stay awake for task

    I can schedule a task to awaken the computer. The computer comes out of sleep
    for a few seconds, starts the task, then promptly goes back to sleep.

    Is there a way to keep it awake long enough to complete the task?

    One of the problem tasks is running the Norton Anti Virus scans. When I
    awaken my computer in the morning, I find that NAV has been started, but only
    scans a few files before the computer went back to sleep. It then wants to
    complete the scan when the computer is awake.

    Perhaps there is a command that can be added to the task that turns off the
    ability to enter sleep before running the program then turns it back on when
    the program completes.

      My System SpecsSystem Spec

  2. #2


    Mark L. Ferguson Guest

    Re: Won't stay awake for task

    schedule a *.bat file to run the scan after a change to your sleep settings
    --scheduled.bat--
    REM change sleep setting to 60 minutes
    powercfg -Change standby-timeout-ac 60
    REM start Nav scan
    c:/somefolder/somefile.exe
    --end file--

    Run a bat file on startup
    --startup.bat--
    REM reset sleep timer to 5 minutes
    powercfg -Change standby-timeout-ac 5
    --end file--
    --
    Was this helpful? Then click the Ratings button. Voting helps the web
    interface.
    http://www.microsoft.com/wn3/locales...eAPostAsAnswer
    Mark L. Ferguson
    ..

    "MikeM" <MikeM@xxxxxx> wrote in message
    news:590F99C1-6F23-403C-AD44-581396089465@xxxxxx

    > I can schedule a task to awaken the computer. The computer comes out of
    > sleep
    > for a few seconds, starts the task, then promptly goes back to sleep.
    >
    > Is there a way to keep it awake long enough to complete the task?
    >
    > One of the problem tasks is running the Norton Anti Virus scans. When I
    > awaken my computer in the morning, I find that NAV has been started, but
    > only
    > scans a few files before the computer went back to sleep. It then wants
    > to
    > complete the scan when the computer is awake.
    >
    > Perhaps there is a command that can be added to the task that turns off
    > the
    > ability to enter sleep before running the program then turns it back on
    > when
    > the program completes.

      My System SpecsSystem Spec

  3. #3


    Greg Teater Guest

    StayAwake front end utility

    http://www.personal.psu.edu/mjw12/public/StayAwake.pdf

    This has solved a couple of my problems with Vista going to sleep after the task scheduler woke to run. I believe the Vista default sleep is 120 seconds when brought out of sleep my the task scheduler. This is not controlled by the normal power options sleep timer. There are some registry hacks to change the timer but I found using the StayAwake front launcher to be an easier, cleaner solution.

    gt57



    Posted as a reply to:

    Won't stay awake for task

    I can schedule a task to awaken the computer. The computer comes out of sleep
    for a few seconds, starts the task, then promptly goes back to sleep.

    Is there a way to keep it awake long enough to complete the task?

    One of the problem tasks is running the Norton Anti Virus scans. When I
    awaken my computer in the morning, I find that NAV has been started, but only
    scans a few files before the computer went back to sleep. It then wants to
    complete the scan when the computer is awake.

    Perhaps there is a command that can be added to the task that turns off the
    ability to enter sleep before running the program then turns it back on when
    the program completes.

    EggHeadCafe - Software Developer Portal of Choice
    WCF Workflow Services Using External Data Exchange
    http://www.eggheadcafe.com/tutorials...vices-usi.aspx

      My System SpecsSystem Spec

Won't stay awake for task

Similar Threads
Thread Forum
monitor goes into sleep mode right away when comp on and will not awake
the problem im having is the monitor goes into sleep mode right away when comp is turned on and it wont come on no matter what i do it just keeps...
General Discussion
In Task Scheduler, what's the difference between Create Basic Task and Create Task?
They both appear to be the same!
General Discussion
Won't stay awake for scheduled task
Task Scheduler wakes the machine from sleep to run the scheduled task. The task starts, but the machine goes back to sleep within a minute leaving...
Vista performance & maintenance
Awake from sleep issue
lately my Vista Home Premium has been acting strangely when awakened from sleep mode..previously I would put it to sleep and when I hit the power...
Vista General
Schedule task “Wake computer” won’t stay awake…
Schedule task “Wake computer” won’t stay awake… Since our friends at Microsoft decided to remove a functional backup solution from the...
Vista General
Password after awake
There seems to be no difference in awake from sleep and awake from hibernate. I want to enter a password after awake from hibernate, but not after...
Vista account administration
Monitor does not awake on activity
My installation: RC1 Vista with ATI Radeon X1600 pro & ATI beta drivers. Monitor is set to turn off aftersay 30 minutes of inactivity. It will...
Vista General