Why does the "Regular Maintenance" scheduled task change from "Disabled" to "Enabled"?
The task was initially disabled when baking an AWS AMI. When the instance starts the task is disabled but 15 minutes after launch time the task changes to enabled.
The status of the
Regular Maintenance
was being changed by theIdle Maintenance
task. If I disabled theIdle Maintenance
task immediately after startup theRegular Maintenance
task status stayed as Disabled.I tracked this down by using the
Get-ScheduledTaskIno
powershell command. Here's the change I observed.Initial state of Idle Maintenance task:
Indication Idle Maintenance had run and disabled Regular Maintenance task: