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?
LVL 1
butterhookAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
butterhookAuthor Commented:
Doh, wake up, turn on.. it's all the same to me!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Vista

From novice to tech pro — start learning today.