PowerShell

How to schedule PowerShell script using Task Scheduler in Windows 10

How to schedule PowerShell script using Task Scheduler in Windows 10

PowerShell scripts reduce the effort in running repetitive tasks. If you are frequently executing scripts at pre-defined times or specified time intervals, you may want an efficient way of not having to execute scripts repeatedly. In this post, we will guide you on how to schedule PowerShell script to run periodically on Windows 10 using Task Scheduler.

Schedule PowerShell script using Task Scheduler

It's assumed you have already created a PowerShell script. To schedule PowerShell script using Task Scheduler, do the following:

  1. Press Windows key + R to invoke the Run dialog.
  2. In the Run dialog, type taskschd.msc
  3. Press CTRL+SHIFT+ENTER key combo to open Task Scheduler in admin mode.
  4. On the left pane, right-click Task Scheduler Library > Create Task.
  5. In General tab, you can set scheduler name and description about the task like for what purpose the task has created.
  6. Switch to the Trigger tab and click the New button. Here, you can set conditions that trigger a task.
  7. Then open Actions tab and click the New button.

In the Action drop-down, Start a program is set by default. You can change it if required.

Using Browse, select program/script field. To schedule a script, we need to select powershell.exe. You can find powershell.exe in your system32\WindowsPowerShell\v1.0 folder.

In Add arguments, -File parameter is the default one so simply specify the script path. Assume you have created a PowerShell script and saved it to your desktop.

C:\Users\\Desktop\TWC_script.ps1

If the path contains any blank space, it should be enclosed with quotes.

PowerShell script does not run as Scheduled Task - 0xFFFD0000 error

The scheduled script will run as expected according to your schedule without any issue. If you want to check script execution, you can click Run by right-clicking task name.

This is how you can make a PowerShell script run as a scheduled task using Task Scheduler.

Remap your mouse buttons differently for different software with X-Mouse Button Control
Maybe you need a tool that could make your mouse's control change with every application that you use. If this is the case, you can try out an applica...
Microsoft Sculpt Touch Wireless Mouse Review
I recently read about the Microsoft Sculpt Touch wireless mouse and decided to buy it. After using it for a while, I decided to share my experience wi...
AppyMouse On-screen Trackpad and Mouse Pointer for Windows Tablets
Tablet users often miss the mouse pointer, especially when they are habitual to using the laptops. The touchscreen Smartphones and tablets come with m...