[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1135
  • Last Modified:

Vista Scheduled Task - turn on and run batch file

I have created 2 batch files loosely based on the backup batch file here:

http://wiki.hak5.org/wiki/Backup_Using_Batch_Files

And scheduled them as tasks in Windows Vista to run at 3am in the morning for one user's files and 5am in the morning for another user's files. (to separate folders on a network attached drive)

Each distinct task is programmed to turn the computer on and run under user 1's credentials, and the next uses user 2's credentials.

When I run the batch file manually it runs fine, for each one - and does the back up fine.

It appears that the task is not starting correctly or running at all when the computer is turned off. They do run if the machine is on.

What am I doing wrong?
0
butterhook
Asked:
butterhook
  • 3
  • 2
1 Solution
 
pghzooitCommented:
can you tell me what code is turning the PC on? are you running thehis from another PC?
0
 
drbayerCommented:
I'm no expert on Vista, but to my knowledge no operating system can actually turn the system on.  Vista should be able to wake the system from sleep state (which is the default power off state for Vista), but not actually power it on.  Many systems now support scheduled power-on through the system bios, and you could set those systems to power on that way and then shut back down through the script.
0
 
pghzooitCommented:
whew..... drbayer, I started thinking I was missing something.
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
butterhookAuthor Commented:
The scheduled task is configured to "turn on the pc to run this task'
0
 
pghzooitCommented:
Sorry bud , its Wake PC to preform task. Meaning sleep mode.

How about just leaving the PC on  and using sleep mode?
createtask.jpg
0
 
butterhookAuthor Commented:
Doh, wake up, turn on.. it's all the same to me!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now