Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scheduled task sleeps after 1-2 minutes

Status
Not open for further replies.

PClady2007

IS-IT--Management
Jul 14, 2007
3
US
Hello,

I am trying to run a couple scheduled tasks in the AM. The tasks wake the machine okay (except only to the point of a black screen and cursor); but regardless the tasks start running and after 1-2 minutes the machine goes into sleep mode. I can have my power options set to never sleep and this still occurs. From what I've read this is a pretty common problem.

When Windows Backup runs, it wakes up the machine the same way (again to the point of black screen and cursor) but the task runs to completion and the computer doesn't enter sleep mode.

I've tried turning Media sharing on and setting the advanced power settings to Prevent Idling to Sleep and this doesn't help any.

There must be some setting in the task which I am overlooking. Any help at all with this would be greatly appreciated.

Also, does anyone know of a simple command line that can wake up Vista? I know of several to put it to sleep. I know if I could get the task to FULLY wake up, and not just go to the black screen with the cursor, that it would not go to sleep after a couple minutes; all tasks seem to run this way though. I've even tried running simple commands like: (cmd.exe "exit") to wake the machine up but even that brings up the black screen and brings the machine to sleep after a minute.

My initial goal would be to have the tasks totally wake up the machine and then once they go idle I could set my power option to have the machine sleep after 15 minutes or so as to not waste unneeded power. Since nothing seems to wake up the machine fully, if I could get it to where Vista will at least run the tasks with the black screen and cursor (as the Windows Backup task does) without going to sleep for whatever reason, then I could at set a manual sleep a couple hours after the tasks begin and go that route.

Thank you very much for any help!!
PCLADY
 
Run Powercfg /? from an Elevated Command Prompt and look at
POWERCFG -H <ON|OFF> under the Hibernate commands.

Possibly the command "C:\WINDOWS\system32\rundll32.exe PowrProf.dll, SetSuspendState" Hibernates the computer. See if there are any other uses for that type of command?

SetSuspendState Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top