information   Information
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.

For more information about "Automatic Maintenance", see: Automatic Maintenance (Windows Dev Center)

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 into PowerShell, and press Enter.

Get-ScheduledTask | ? {$_.Settings.MaintenanceSettings} | Out-GridView

Name:  Automatic_Maintenance_tasks-1.jpg
Views: 2295
Size:  23.6 KB

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)

Name:  Automatic_Maintenance_tasks-2.jpg
Views: 2316
Size:  129.2 KB Name:  Automatic_Maintenance_tasks-3.jpg
Views: 2316
Size:  108.8 KB

That's it,