PowerShell is the de facto scripting language in Windows environments.

Microsoft has even decreed that all software units must be able to be managed by using PowerShell cmdlets.

This means that we need to learn how to run scripts from the Task Scheduler.

  1. Left click "Task Scheduler"
  2. Right click on the empty area
  3. Create New Task...
  1. Define a Job Name
  2. Select an Useraccount to run the job, check "Run wheter user is logged on or not" and check "Run with highest privileges"
  1. Select Tab "Triggers"
  2. Click on "New..."
  3. Choose your Trigger options, that fits to your needs
  4. Click on "OK"
  1. Click on the "Actions" Tab
  2. Click on "New..."
  3. Action: "Start a program"
  4. Program/script: Powershell.exe
    Add arguments (optional): -ExecutionPolicy Bypass <scriptpath>
  5. Click on "OK"

Click on "OK"

  1. Set Username and Passwort...
  2. Click on "OK"