Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to schedule a powershell script to run on my windows 7 system everyday with admin priviliges.
How do I do so?

share|improve this question

You can use schtasks, from an elevated CMD prompt.


schtasks /create /tn "My Task Name" /ru Administrator /sc daily /sd 28/05/2011 /st 14:00 /tr "powershell.exe -noprofile -executionpolicy RemoteSigned -file %MyPATH%\MyTaskScript.ps1"

This would run the script at 14:00 every day.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .