Q. How can I schedule a PowerShell script?

A. Scheduling a PowerShell script is easy: Just schedule PowerShell.exe, which is located in \Windows\System32\WindowsPowerShell\v1.0 (even v2 is located in that folder for some reason). PowerShell.exe has command-line parameters that let you specify a command—such as the name of a script—that you want to run. Just be sure that the scheduled task is running under a user account that has permission to do whatever the script is trying to do.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish