How to View All Automatic Maintenance Tasks in Windows 10
Maintenance activity refers to an application or process that helps maintain the health and performance of a Windows PC. Maintenance includes keeping Windows and applications up-to-date, checking security, and running scans for malware. Windows Automatic Management (WAM) is a set of enhancements to the Task Scheduler API you can use to link your applications into the Windows maintenance schedule. Specifically, WAM allows you to add activities that require regular scheduling, but do not have exact time requirements. Instead, WAM relies on the operating system to choose the appropriate time to activate the task throughout the day. The system chooses those times based on minimal impact to the user, PC performance, and energy efficiency.
How Scheduled Maintenance Works
Windows Automatic Maintenance minimizes impact to the PC by scheduling maintenance only when the PC is on and idle. By default, the system performs maintenance daily, starting at 3 AM. (Note that the user may re-schedule when the maintenance occurs.) This daily session is limited to a maximum duration of 1 hour per attempt. If the user is actively using the machine, the system defers maintenance until a later time. The system also suspends any executing maintenance task if the user returns to the PC.
The system restarts a suspended maintenance task during the next idle period; however, the system will not suspend any task marked as critical. Instead, the system allows a critical task to complete, regardless of user action.
Due to the nature of scheduling, some scheduled tasks may not finish: perhaps there are too many scheduled events to fit in the 1 hour maintenance window, or maybe the computer was simply not turned on. In such cases, you can define a task with a deadline. A deadline is defined as a recurring time frame in which the system must successfully perform the task at least once.
If a task misses a deadline, the maintenance scheduler will continue to attempt to execute the task during the maintenance window. Further, the scheduler will not limit itself to the regular 1 hour time limit. Instead, the scheduler extends the duration of the maintenance window in order to complete the delayed task. If the system still cannot complete the task, the Action Center displays a warning notification to the user. The user can then manually initiate the maintenance action from the Action center.
Once the system completes the task (even with a failure error code), the attempt is considered successful. After a successful attempt, the scheduler resets to the regular maintenance schedule, and will attempt the task during the next period.
See also: Automatic Maintenance | Microsoft Docs
This tutorial will show you how to view a list of all automatic maintenance tasks in Windows 10.
Here's How:
1 Open PowerShell.
2 Copy and paste the command below you want to use into PowerShell, and press Enter.
(Outputs to interactive table in a separate window like screenshots below step 3.)
Get-ScheduledTask | ? {$_.Settings.MaintenanceSettings} | Out-GridView
OR
(Outputs to "MaintenanceTasks.txt" file on your desktop.)
Get-ScheduledTask | ? {$_.Settings.MaintenanceSettings} | Format-Table -AutoSize | Out-file -FilePath "$Env:userprofile\Desktop\MaintenanceTasks.txt"
3 You will now see a list of all automatic maintenance tasks including their TaskPath, TaskName, and current State in Task Scheduler (taskschd.msc). (see screenshots below)
That's it,
Shawn
Related Tutorials
- How to Change Automatic Maintenance Settings in Windows 10
- How to Manually Start or Stop Automatic Maintenance in Windows 10
- How to Enable or Disable Automatic Maintenance in Windows 10
- How to Enable or Disable Scheduled System Maintenance in Windows
- How to Prevent Windows 10 from Deleting Thumbnail Cache
- How to Enable or Disable Automatic Maintenance to Wake Up Computer in Windows 10
- How to Specify Automatic Maintenance Time to Run in Windows 10