Release: Task Scheduler health tools + TaskCache diagnostic (dev -> main) #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Promotes
devtomainfor release. Included since the lastmainrelease:Test-ScheduledTaskHealth.ps1(#3) - offline diagnostic that reconciles the on-disk taskXML files against the
TaskCacheTree and Tasks registry entries without calling the TaskScheduler service, so it works even while the service is hung. Includes an opt-in
-Repairmode that backs up each item (native
.regexport + XML copy to-BackupPath) beforeremoving it, gated by
SupportsShouldProcess(-WhatIf/-Confirm). The registry backupuses the .NET registry API rather than
reg.exe, so it works whereDisableRegistryToolspolicy blocks
reg.exe.TaskCache count summary +
Get-TaskCacheSummary.ps1(#4) -Test-ScheduledTaskHealth.ps1now emits a leading
Summaryrecord (Tree node / Tasks GUID / XML file counts plus aper-category tally) and warns when
TaskCache\Tasksholds far fewer entries than the Treereferences. The new
Get-TaskCacheSummary.ps1is a quick read-only count comparison with aninterpreted assessment and optional per-GUID spot-checks (
-CheckGuid), to distinguish realcorruption from a false alarm before any destructive repair.
Net result: the repo goes from three scripts to five, with README updates for both.
Fixes #
How was this tested?
.ps1filesfolder) covering detection,
-Repair -WhatIf, a real-Repairrun with backups, the Summaryrecord, the count assessment, and
-CheckGuidspot-checks.Checklist