Skip to content

Commit

Permalink
tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Feb 19, 2025
1 parent f5ef011 commit d901bc0
Showing 1 changed file with 8 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,69 +3,21 @@ title: Disable Scheduled Tasks
description: Disables scheduled tasks to prevent automatic tasks from running at startup, consuming resources and collecting user data
actions:
# Updates compatibility database
- !scheduledTask: {path: '\Microsoft\Windows\Application Experience\PcaPatchDbTask', operation: disable}
- !scheduledTask: {path: '\Microsoft\Windows\Application Experience\PcaPatchDbTask', operation: disable, ignoreErrors: true}

# UCPD - might not exist on all installs, so ignore errors
- !scheduledTask: {path: '\Microsoft\Windows\AppxDeploymentClient\UCPD velocity', operation: disable, ignoreErrors: true}

# Data collection
- !scheduledTask: {path: '\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector', operation: disable, ignoreErrors: true}

# CEIP - safety measure
- !scheduledTask: {path: '\Microsoft\Windows\Customer Experience Improvement Program\Consolidator', operation: disable, ignoreErrors: true}
- !scheduledTask: {path: '\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip', operation: disable, ignoreErrors: true}

# A/B testing usage reports
- !scheduledTask: {path: '\Microsoft\Windows\Flighting\FeatureConfig\UsageDataReporting', operation: disable, ignoreErrors: true}
- !registryValue:
path: 'HKLM\System\CurrentControlSet\Control\Ubpm'
value: 'CriticalMaintenance_UsageDataReporting' # Remove from automatic maintenance
operation: delete

# -------------------------------------------------------------------------------------
# Here are the scheduled tasks that are currently commented as they're under review.
# This list should be somewhat minimal in the tasks it deletes, as a lot of the tasks
# below won't run by default ever anyways, unless needed.
# Telemetry and CEIP/SQM is stripped by default anyways, so don't worry about that.
# -------------------------------------------------------------------------------------

# - !scheduledTask:
# path: '\Microsoft\Windows\DeviceDirectoryClient'
# operation: deleteFolder

# Needed for Windows Update to function properly
# - !scheduledTask: {path: '\Microsoft\Windows\InstallService\ScanForUpdates'}
# - !scheduledTask: {path: '\Microsoft\Windows\InstallService\ScanForUpdatesAsUser'}
# - !scheduledTask: {path: '\Microsoft\Windows\WindowsUpdate\Scheduled Start'}

# "The Windows Scheduled Maintenance Task performs periodic maintenance of the
# computer system by fixing problems automatically or reporting them through Security and Maintenance."
# - !scheduledTask: {path: '\Microsoft\Windows\Diagnosis\Scheduled', operation: disable}

# Wouldn't be randomly executed
# - !scheduledTask: {path: '\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector'}
# - !scheduledTask: {path: '\Microsoft\Windows\DiskFootprint\Diagnostics'}
# - !scheduledTask: {path: '\Microsoft\Windows\Maintenance\WinSAT'}
# - !scheduledTask: {path: '\Microsoft\Windows\MemoryDiagnostic\RunFullMemoryDiagnostic'}
# - !scheduledTask: {path: '\Microsoft\Windows\Shell\IndexerAutomaticMaintenance'} # Unless indexing is enabled
# - !scheduledTask: {path: '\Microsoft\Windows\Shell\FamilySafetyMonitor'}
# - !scheduledTask: {path: '\Microsoft\Windows\Shell\FamilySafetyRefresh'}
# - !scheduledTask: {path: '\Microsoft\Windows\PI\Sqm-Tasks'}
# - !scheduledTask: {path: '\Microsoft\Windows\Registry\RegIdleBackup'} # Registry backups are disabled by default
# - !scheduledTask: {path: '\Microsoft\Windows\StateRepository\MaintenanceTasks'}
# - !scheduledTask: {path: '\Microsoft\Windows\ApplicationData\appuriverifierdaily'}
# - !scheduledTask:
# path: '\Microsoft\Windows\Location'
# operation: deleteFolder

# Needs research
# - !scheduledTask: {path: '\Microsoft\Windows\AppID\EDP Policy Manager'}
# - !scheduledTask: {path: '\Microsoft\Windows\ApplicationData\appuriverifierinstall'}
# - !scheduledTask: {path: '\Microsoft\Windows\BrokerInfrastructure\BgTaskRegistrationMaintenanceTask'}
# - !scheduledTask: {path: '\Microsoft\Windows\Defrag\ScheduledDefrag'}
# - !scheduledTask: {path: '\Microsoft\Windows\Device Setup\Metadata Refresh'}
# - !scheduledTask: {path: '\Microsoft\Windows\InstallService\SmartRetry'}
# - !scheduledTask: {path: '\Microsoft\Windows\Management\Provisioning\Cellular'}
# - !scheduledTask: {path: '\Microsoft\Windows\MemoryDiagnostic\ProcessMemoryDiagnosticEvents'}
# - !scheduledTask: {path: '\Microsoft\Windows\Printing\EduPrintProv'}
# - !scheduledTask: {path: '\Microsoft\Windows\PushToInstall\LoginCheck'}
# - !scheduledTask: {path: '\Microsoft\Windows\Ras\MobilityManager'}
# - !scheduledTask: {path: '\Microsoft\Windows\UPnP\UPnPHostConfig'}
# - !scheduledTask: {path: '\Microsoft\Windows\WaaSMedic\PerformRemediation'}
# - !scheduledTask: {path: '\Microsoft\Windows\Windows Media Sharing\UpdateLibrary'}
# - !scheduledTask: {path: '\Microsoft\Windows\CloudExperienceHost\CreateObjectTask'}
# - !scheduledTask: {path: '\Microsoft\Windows\ApplicationData\DsSvcCleanup'}
# - !scheduledTask: {path: '\Microsoft\Windows\Application Experience\StartupAppTask'} # notification to the user if there are too many startup entries

0 comments on commit d901bc0

Please sign in to comment.