task schedule

I have windows 7 home Preium. I have a batch file I am trying to schedule. Can schedule It to run when the PC Is shut off? Or If the PC Is off at the schedule time and than you turn It on I would like the batch to run. I been trying to fiure It out. I can get It to run It the computer Is on and It can be any user logged on. I just wouldlike to know If they turn It off I want It to run when they log on. Can someone help? I am just learning batch file and how to schedule. I never schedule before.

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.