Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to create an Advanced Windows Scheduled Task

Posted on 24/03/202016/09/2026 Christian By Christian No Comments on How to create an Advanced Windows Scheduled Task
  1. Home
  2. Windows Server
  3. How to create an Advanced Windows Scheduled Task
Create advantaced task scheduler

Task Scheduler enables you to automatically perform routine tasks on a chosen computer. Task Scheduler does this by monitoring whatever criteria you choose (referred to as triggers). And then executing the tasks when those criteria are met. Please see how to create a Scheduled task with Windows Admin Center, and how to set up Windows server backup and create backup jobs. And how to create Windows Task Scheduler via the command prompt. 

You can use the Task Scheduler to execute tasks such as starting an application, sending an email message, etc. Tasks can be scheduled to execute in response to these events, or triggers.

In this guide, you will learn how to create an advanced scheduled task on Windows Server with Windows Task Scheduler. In this task, you will learn how to create an Advanced Windows Scheduled Task.

Create an Advanced Windows Scheduled Task

To perform these steps via the task scheduler, follow the steps below. Ensure you have your script ready and saved with the .ps1 extension. Search and launch the Task Scheduler Tool as shown below or from the Start menu,
– Select Administrative Tools and then Task Scheduler.

Kindly refer to these exciting guides.: Run or Edit and Delete Tasks via Windows Task Scheduler, Periodic Scanning: How to schedule Windows Defender antivirus, and how to fix Task scheduler errors and success code: What does code 0x41301.

This will open up the task scheduler Tool. Right-click on Task Scheduler or “under Actions”, and select “Create Task”

Screenshot of the Windows Task Scheduler interface showing the 'Create Task' and 'Create Basic Task' options in the menu.

This will open up the create task dialog window as shown below.

On the General Tab, Enter the Task Name.
– Enter a description for others to understand what you are doing
– Select “Run whether user is logged on or not”

If this is not selected and the first option is used, the script may not run when a user does not log in. We have had a similar issue in the past.

Ensure to run with the highest privilege (Here you have to evaluate your security need). Here are some related guides: Wbadmin Email Alerts: How to monitor Windows server backup, and Error: Failed to create a scheduled task: The WS-Management service cannot

Screenshot of a Windows Task Scheduler window showing the creation of a task named 'WindowsUpdate' with specified author, description, user account settings, and options for highest privileges and configuration for Windows Server 2019.

Note: If you are using an account with administrative privileges, the default user should be fine. If you are running a Command Prompt or PowerShell command, you can select the Run whether user is logged on or not option to prevent the command window from showing up when the task runs automatically.

If the task requires elevated privileges, check the Run with the highest privileges option. Learn what is new in Task Scheduler from what’s new in task scheduler.

Create a Windows Scheduler Trigger

Navigate to the Trigger Tab as shown below. Click on New, This will open a window where the trigger can be defined.

Screenshot of the Create Task window in a software application, showing tabs labeled General, Triggers, Actions, Conditions, and Settings, with a focus on the Triggers tab and a highlighted 'New...' button.

Since we are defining this task for Windows update, and maintenance are done just one in a Month, I will perform the following highlighted in red.

Screenshot of a task scheduling window, displaying options for setting up a monthly trigger with selection for the fourth Wednesday and various advanced settings.

You can decide to have the updates installed on a particular day.

By selecting the Days and from the dropdown menu, you can select a date. When you are done creating the trigger, The following configured trigger will be displayed as shown below

Screenshot of a 'Create Task' window with the 'Triggers' tab selected. It displays a monthly trigger setting for a task that runs on the fourth Wednesday of each month, along with options to confirm the action.

Next. click on the Action tab

Create Task window showing the Actions tab, with a highlighted 'New...' button at the bottom.

This will open a new Action tab as shown below

Under the “Settings” section, in the “Program/script” field, specify the path for the application (Here you will have to select the script by browsing to the location or copy the script path to this field).

Optionally enter the “PowerShell.exe” program path needed to run your script. When this is not select, your script cannot run.

Note: If you don’t know the path of the app, click the Browse button to find it. Also, if it is a known application like PowerShell or Command Prompt, all you need to do is to specify the file name.

Screenshot of a task scheduling window with 'Start a program' selected, showing the path to a PowerShell script and an OK button highlighted.

Note: Use the “Action” drop-down menu and select the Start a program option.You can still use the Send an e-mail or Display a message option, but these are deprecated features, which means that they may or may not work because Microsoft is no longer maintaining them.

Add a Scheduled Task Argument

In the “Add arguments” field, you can specify arguments to run the task with special instructions. E.g., -NoExit -ExecutionPolicy Bypass C:\PATH\TO\SCRIPT\first_script.ps1. Using the “powershell.exe” command and the above argument, it’ll run the script named “first_script.ps1.” The argument “-ExecutionPolicy Bypass” ensures that the script runs successfully, and the “-NoExit” argument will prevent the window from closing after running the script.

When this step is complete, it will appear as shown below.

Screenshot of the 'Create Task' window in Windows Task Scheduler, highlighting the action to start a program with specified file paths and options to edit or delete the task.

Note: You can also edit the Action after it has been created etc.

Next, click on the condition tab as shown above. For me, these settings are not applicable, but below is a screenshot of how it looks like 🙂

Settings window for creating a task, displaying options for idle conditions, power requirements, and network connection criteria.

Also, on the settings tab, all needed

Settings window for creating a scheduled task in Windows, showing options for task behavior, including restart attempts and time limits.

This will prompt you to enter your password as shown below

Windows Task Scheduler user account prompt with fields for username, password, and OK button.

To view the configured task, click on the “Task Scheduler Library” and search for your configured task on the left pane of the Window.

Screenshot of Windows Task Scheduler interface showing the 'Task Scheduler Library' and details of the 'WindowsUpdate' task.

To test this task, since the date we have configured this task to run is still in the future, we will manually run the task as shown below.

For more information on how to run, edit, and delete a task using Task Scheduler GUI (taskschd.msc), see the following link.

Right-click on the task and click on run

Screenshot of Windows Task Scheduler showing various scheduled tasks, including a task for Windows Update that is set to run on the fourth Wednesday of each month.

In this same manner, the task can be disabled or also from the Actions pane. Now that you have selected to run your scheduled task, the status will change to running as shown below.

With the F5 button on your keyboard, you can use this to refresh the states

Screenshot of Windows Task Scheduler showing the status of tasks including 'WindowsUpdate' marked as 'Running'.

I hope you found this blog post helpful on how to create an Advanced Windows Scheduled Task. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Server Tags:Windows 10, Windows Server 2016

Post navigation

Previous Post: How to add servers to the Trusted Hosts list
Next Post: All Task Scheduler Errors and Success Codes

Related Posts

  • FileNotFoundError Errno 2 No such file or directory
    Fix FileNotFoundError: [Errno 2] No such file or directory Scripts
  • How to configure Volume Shadow Copies VSS on Windows Server
    Volume Shadow Copies: How to configure VSS on Windows Server Windows
  • hero activedirectory
    How to move a computer object from one container (OU) to another Windows Server
  • SSH Keys Generation
    How to Generate SSH keys in Windows 11 Windows
  • image001
    Fix Certificate Error: Unable to access Windows Admin Center from the Web Windows Server
  • banner 4
    How to Install Windows on VMware Workstation Windows

More Related Articles

FileNotFoundError Errno 2 No such file or directory Fix FileNotFoundError: [Errno 2] No such file or directory Scripts
How to configure Volume Shadow Copies VSS on Windows Server Volume Shadow Copies: How to configure VSS on Windows Server Windows
hero activedirectory How to move a computer object from one container (OU) to another Windows Server
SSH Keys Generation How to Generate SSH keys in Windows 11 Windows
image001 Fix Certificate Error: Unable to access Windows Admin Center from the Web Windows Server
banner 4 How to Install Windows on VMware Workstation Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

veeaam100

Veeam Vanguard

  • FQWD
    Logoff or Restart or Shutdown Windows PC remotely Windows
  • images
    Advantage of using a 3rd party software for Backup (N2WS by Veeam) over AMI Backup
  • SystemUtilization
    Delivering System Utilization Report on a Linux based OS Linux
  • systemd services
    How to use Systemd Timers on Linux Linux
  • How to Upgrade Windows 10 with an Unsupported CPU TPM 1.0 to Windows 11
    Upgrading from Windows 10 with Unsupported CPU and TPM 1.0 Windows
  • Fix Boot Failed UEFI SCSI Device on HyperV
    How to Fix Boot Failed UEFI SCSI Device on HyperV Virtualization
  • HyperV
    How to install free Hyper-V Server on a VMware Workstation Virtualization
  • LDAP
    LDAP: What is Lightweight Directory Access Protocol Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,757 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.