Windows Server 2022 Task Scheduler: Schedule Reboot Guide

If you want to schedule restart with Windows Server 2022 Task Scheduler, read this article to get a stepwise guide. The best Windows Server backup software is offered as well.

Lily

By Lily Updated on December 12, 2024

Share this: instagram reddit

Windows Server 2022 Task Scheduler is a powerful feature that allows users to automate and schedule various tasks on Server 2022 system. It provides a way to manage and run tasks, scripts, programs, and other processes at specified times or in response to specific events.

👉 How to schedule restart on Windows Server 2022🔥
👉 Key features of Windows Server 2022 Task Scheduler
👉 Troubleshoot: Windows Server 2022 Task Scheduler doesn't run tasks
👉 Bonus tip: schedule a weekly backup on Windows Server 2022🔥

How to schedule restart on Windows Server 2022

There are a lot of users who want to have Windows Server schedule reboot. Follow the instructions below:

  1. Search “task scheduler” in Windows search. Then click on the top result to open Task Scheduler in Windows Server 2022.
  2. Right-click on Task Scheduler Library and click New Folder.

New Folder

  1. Give a name to the folder like “Server Reboot” and click OK. Making a folder makes your task separate, so you can manage it easily.
  2. Now right-click on newly created folder and select Create Task.

Create Task

  1. In General tab, give a task name and description. Then select Run whether user is logged on or not and Run with highest privileges.
  2. Now click on Triggers tab, and click the New button.
  3. Select On a schedule from the pull-down menu and specify date and time for restart. Here I am choosing to run this task every week on Sunday only. Then click OK.

New Trigger

  1. Now let’s go to Actions tab, click the New button to create an action.
  2. Type shutdown in the Program/script box. Type -r -t 60 in the Add arguments box. Then click OK.

New Action

Note: Learn more about shutdown commands here.

  1. Now select Conditions tab and keep power settings as it if nothing needed.
  2. Click on Settings tab to do more configurations as necessary and click OK.
  3. Now you can see your task is ready to run on given schedule. If you want to run anytime, just right-click on the task and select Run.

Run

Key features of Windows Server 2022 Task Scheduler

The Task Scheduler in Windows Server 2022 offers several improvements and enhancements over its predecessors. Some key features and functionalities include:

🎯 Task Creation: Users can create and define tasks using a user-friendly interface or by using command-line tools such as PowerShell or the schtasks.exe command. Tasks can be set to run once, at specific intervals, or triggered by specific events.

🎯 Trigger Options: Windows Server 2022 Task Scheduler offers a wide range of trigger options to initiate tasks. These include schedules based on specific dates and times, recurring schedules based on intervals (daily, weekly, monthly), and triggers based on system events such as user logon, system startup, or idle time.

🎯 Advanced Actions: The Task Scheduler allows users to define advanced actions for tasks. These actions can include running scripts or programs, sending email notifications, displaying messages, creating system restore points, and more. This flexibility enables users to perform a wide range of automated tasks on their Windows Server.

🎯 Conditions and Settings: Task Scheduler includes conditions and settings to control when and how tasks run. Users can specify conditions such as the availability of network connections, system power status, or only running the task if the computer is idle. Additionally, tasks can be configured to stop or restart if they run for a specified duration.

Troubleshoot: Windows Server 2022 Task Scheduler doesn't run tasks

When Windows Server 2022 Task Scheduler doesn’t run tasks as expected, it can disrupt automated processes and affect system performance. Here’s a troubleshooting guide to help you diagnose and fix the issue:

✅ 1. Check Task Scheduler Service

  • Verify Service Status: Ensure the Task Scheduler service is running. Go to Services.msc, locate Task Scheduler, and confirm it’s set to Automatic and is currently running.
  • Restart the Service: If the service is running, try restarting it. This can resolve minor glitches.

✅ 2. Examine Task Properties

  • Task Triggers: Ensure the task triggers are correctly set. Check the date, time, and recurrence settings to confirm they match your intentions.
  • Task Actions: Verify that the actions linked to the task are correct, including the path to the executable or script being run.
  • Conditions: Review the conditions under which the task runs. For instance, if the task is set to only run when the computer is idle, it won’t trigger during active periods.

✅ 3. Review Task Permissions

  • User Account: Confirm that the task is configured to run under an account with appropriate permissions. The account should have sufficient rights to run the actions defined in the task.
  • Run with Highest Privileges: If the task requires elevated permissions, ensure the "Run with highest privileges" option is selected.

✅ 4. Review Event Logs

Check the Event Viewer for any relevant error messages. Look under Windows Logs > System and Applications and Services Logs > Microsoft > Windows > TaskScheduler for events that might give more insight into the issue.

✅ 5. Check Script or Program Compatibility

  • Compatibility: Ensure that any scripts or programs run by the Task Scheduler are compatible with Windows Server 2022.
  • Test Manually: Run the script or program manually to ensure it works as expected outside of Task Scheduler.

Bonus tip: schedule a weekly backup on Windows Server 2022

To protect Server 2022 system and data, it is necessary to create a backup. Some users are looking for a way to schedule Windows Server Backup once a week. It can be achieved by the combination of Task Scheduler and Wbadmin commands. However, the way is a little troublesome and difficult for common users if they are not familiar with specific parameters.

How to create a server backup easily? Here I’ll introduce two pieces of potent backup software to you.

1. Standalone server backup software

The best server backup software - AOMEI Backupper Server offers all-around server backup solutions.

AOMEI Backupper
Best Server 2022 Backup Software
  • Various backup types: It supports system/disk/partition/file backup, schedule backup, incremental and differential backup.
  • Flexible backup options: While you backup data, you can add comments for images, encrypt or split images. Also, you can set email notification to tell you a successful backup.
  • Wide compatibility: It supports both Windows Server (Windows Server 2025/2022/2019/2016/2012(R2)/2008(R2)/2003, etc) and Windows PC (Windows 11/10/8.1/8/7/Vista/XP) operating systems.

Step 1. Open this program, click Backup and then choose System Backup.

System Backup

Step 2. Give this backup task a name. The required system partitions are selected by default. Click the second bar to select a destination path

Select Backup Destination

Step 3. Click Schedule Backup -> Enable Schedule Backup and then choose Weekly from the drop-down menu. You can also specify the day and time to run the backup. 

Schedule Weekly

Step 4. Review your operation and then click Start Backup to launch the process.

Start Backup

Note: If you worry about running out of space on the backup disk, you can click Backup Scheme to create backup retention policy.

2. Centralized server backup program

The best enterprise backup software - AOMEI Cyber Backup provides a convenient and reliable solution for centralized backup management of all Windows operating systems.

  • It enables you to create a system image, disk image or partition image for client Windows PCs and Servers.
  • You are allowed to save backup images on a local disk, external hard drive, network share or NAS device, etc.
  • You can schedule a backup task to run every day/week/month using the full/incremental/differential backup method.
  • It also allows you to backup Hyper-V, VMware, and SQL databases.

Download AOMEI Cyber Backup and follow the instructions below to schedule backup Windows Server 2022.

Download Free TrialEasiest Enterprise Backup Software
Secure Download

Step 1. Log in AOMEI Cyber Backup, and add the Windows Server 2022 device that you want to backup.

Step 2. Click Backup Task on the left menu bar and select Backup Task Create New Task.

Step 3. Choose System Backup as the Backup Type and finish the rest settings, including backup target and schedule, etc.

Select Backup Type

🌟 Notice:

If you don’t know how to choose between AOMEI Backupper and AOMEI Cyber Backup, check the comparison table on page Windows Server Backup.

🔥 Hot: What's new in Windows Server 2025?

Windows Server 2025 was officially released on November 1, 2024, bringing several exciting updates. Here are some of the key highlights:

  • Desktop Shell: The first time you sign in, the desktop shell adopts the sleek look and feel of Windows 11, offering a modern and familiar user interface.

  • Bluetooth Support: Windows Server 2025 now includes Bluetooth functionality, making it easy to connect and pair devices like mice, keyboards, headsets, and audio devices.

  • DTrace Integration: DTrace is now a native tool in Windows Server 2025, providing a powerful command-line utility for real-time system performance monitoring and troubleshooting.

  • Email & Accounts: You can now manage Microsoft Entra ID, Microsoft accounts, and Work or School accounts directly in Windows Settings under Accounts > Email & Accounts. However, note that domain joining remains necessary for most configurations.

If you'd like to experience all these wonderful features, you may make a Windows Server 2025 Media Creation Tool to install Server 2025 on a compatible device.

To sum up

Now you know how to use Windows Server 2022 Task Scheduler to schedule reboot. What’s more, to protect your server system and data, you can schedule a weekly backup on Windows Server 2022 with the best server backup software - AOMEI Backupper. You’ll be surprised to find that it is not only a backup program but also a specialized cloning tool. You can use it to clone hard drive on Windows Server 2016, etc. Try it now to discover more!

FAQ on Windows Server 2022 Task Scheduler

1. What is Task Scheduler in Windows Server 2022 and how does it work?
 
Task Scheduler is a built-in component of Windows Server 2022 that allows users to schedule the execution of tasks at specific times or in response to certain events. These tasks can range from simple operations like running a script or launching an application to more complex actions such as backing up data or performing system maintenance. Task Scheduler works by creating and managing a list of tasks, which can be configured with various settings such as triggers, actions, conditions, and settings.
2. Is it possible to automate the management of tasks in Task Scheduler on Windows Server 2022?
 

Yes, it is possible to automate the management of tasks in Task Scheduler on Windows Server 2022 using various methods, including:

  • PowerShell scripting: You can use PowerShell cmdlets to create, configure, and manage tasks in Task Scheduler programmatically.
  • Group Policy: You can use Group Policy settings to centrally manage and enforce task settings and configurations across multiple servers.
  • Task Scheduler APIs: You can use Task Scheduler APIs to develop custom applications or scripts that interact with Task Scheduler programmatically.
  • Third-party automation tools: There are also third-party automation tools available that provide additional functionality and automation capabilities for managing tasks in Task Scheduler.
3. Where are the Windows Server Task Scheduler files stored?
 

The Windows Task Scheduler files are primarily stored in the following directory: "C:\Windows\System32\Tasks "

This directory contains XML files that define the tasks scheduled in the Task Scheduler. Each XML file represents a separate task. Additionally, some system tasks may be stored in other locations, but user-created tasks are typically found in the directory mentioned above.

Lily
Lily · Editor
Lily Green joined AOMEI in 2018 and has since become a professional in the areas of data protection and data transfer. She is committed to helping users protect their precious computer data and troubleshoot Windows system errors. She consistently stays vigilant about the latest trends in technology, guaranteeing that the given information aligned with the ongoing advancements in the field.