How to schedule automatic disk defragmentation in Windows 10 Pro
Windows 10 Pro can maintain your drives automatically through the built-in Optimize Drives tool. For traditional hard disk drives, this process rearranges fragmented data so files can be read more efficiently. Windows uses a different process for solid-state drives, sending an optimisation command rather than repeatedly defragmenting the flash storage.
The default schedule is usually suitable for a home computer, but checking it is worthwhile if your PC has become slow, you recently installed a large update, or you store many files. A sensible schedule can keep maintenance running quietly in the background without interrupting work, gaming, or a video call across Australia’s sometimes busy evening internet hours.
Check which type of drive you have
Before changing the schedule, identify whether your computer uses a hard disk drive (HDD), solid-state drive (SSD), or a combination of both. Press the Windows key, type defragment, and select Defragment and Optimise Drives from the search results. The window lists each available drive and its media type.
An HDD stores information on spinning platters, so fragmented files can increase the movement required by the read head. An SSD has no moving parts and does not benefit from traditional defragmentation. Windows 10 recognises the difference and normally applies the appropriate optimisation method automatically.
If you are unsure about a setting or need more Windows 10 Pro maintenance guides, the Windows 10 Pro resource centre provides practical information for everyday system management. Avoid downloading third-party defragmentation utilities unless you have a specific reason; Windows already includes the necessary tools.
Open the built-in optimisation scheduler
In the Optimise Drives window, select a drive and look at the Current status area. You may see a status such as “OK”, a percentage of fragmentation, or an indication that the drive needs optimisation. Select Change settings to view the automatic maintenance options.
Tick Run on a schedule (recommended) if it is not already selected. The frequency menu generally offers Daily, Weekly, and Monthly. Weekly is a practical choice for most home PCs because it gives Windows regular maintenance without creating unnecessary activity.
Use the Choose button to select the drives included in the schedule. If your system has a C: drive and a separate D: drive, decide whether both need regular optimisation. A data HDD used for photos, videos, or archived documents may benefit from the same weekly schedule as the Windows drive.
Choose a suitable time and frequency
Windows’ graphical settings let you choose how often the task runs, but they do not provide a simple clock setting for the exact start time. The scheduled task generally runs when the computer is available and may use maintenance windows managed by Windows. For many households, that is enough because optimisation happens quietly when the device is idle.
If you want the task to run at a particular time, open Task Scheduler from the Start menu. Expand Task Scheduler Library, then open Microsoft, Windows, and Defrag. The task named ScheduledDefrag controls automatic drive optimisation.
Right-click ScheduledDefrag, select Properties, and open the Triggers tab. You can create a weekly trigger for a chosen day and time, such as early Sunday morning. An Australian household might choose a time before the weekend arvo rush, when a shared PC is less likely to be in use. Make sure the computer is switched on or allowed to wake at that time.
In the Conditions tab, you can require the computer to be idle, connected to AC power, or available on a particular network. A laptop used around Brisbane, Perth, or regional New South Wales may often be running on battery, so requiring mains power could prevent the task from starting. For a desktop, that restriction is less significant.
Run a manual optimisation safely
You do not have to wait for the next scheduled run. In the Optimise Drives window, select the required drive and click Optimise. Windows will analyse the drive and apply the suitable operation. On an HDD, this can involve defragmentation; on an SSD, Windows generally uses the Trim command and other storage maintenance processes.
The Analyse button can help you decide whether an HDD needs attention, although the percentage shown should not be treated as a strict performance score. A lightly fragmented disk may work perfectly well, while a computer with low free space, failing hardware, or too many startup programs may remain slow after optimisation.
Avoid repeatedly starting manual runs simply because the process is available. Let the operation finish where possible, especially on a large hard drive containing many files. You can continue light work during maintenance, but file transfers, game installations, or large backups may take longer while the drive is busy.
For SSDs, do not disable all optimisation simply because you have heard that defragmentation is harmful. Windows 10’s storage maintenance is designed to distinguish SSDs from HDDs. The safest approach is to leave the Microsoft schedule enabled and allow Windows to manage the correct operation.
Troubleshoot a schedule that does not run
If automatic optimisation appears not to work, first check that Run on a schedule remains enabled and that the correct drives are selected. A scheduled task may also be skipped if the computer is asleep, powered off, or unavailable during the trigger window. Restart the PC, leave it idle for a while, and check the last run time in the Optimise Drives window.
Open Task Scheduler and inspect ScheduledDefrag if you need more detail. The History tab can show whether the trigger started successfully or whether a condition stopped it. If history is disabled, select Enable All Tasks History in the Actions panel, then wait for the next scheduled attempt.
Windows Update, system file errors, and storage problems can interfere with maintenance. Open Command Prompt as an administrator and run:
sfc /scannow
Allow the scan to complete, then restart Windows. If the drive reports errors, run a check from This PC, right-click the drive, choose Properties, open Tools, and select Check under Error checking. Back up important files before investigating a drive that makes clicking sounds, disappears from File Explorer, or reports repeated errors.
A PC connected through a slow regional NBN service does not need an internet connection to defragment a local drive, but online backups and cloud synchronisation can make the computer appear busy. Pause large OneDrive uploads or other transfers while testing performance so you can tell whether storage maintenance is the real cause.
Keep drive maintenance effective
Scheduling optimisation is one part of a broader Windows 10 maintenance routine. Keep at least some free space on the system drive, remove temporary files through Settings > System > Storage, and uninstall applications you no longer use. An HDD that is almost full has less room to reorganise data efficiently.
Large media collections are common on family PCs, especially when photos and videos from phones are copied to a desktop. Store old material on a properly backed-up external drive if the internal disk is running short of space. Do not treat a second copy on the same computer as a backup; theft, electrical damage, and drive failure can affect both locations.
Check the health of the drive if Windows feels slow after optimisation. In Settings > System > Storage, review available capacity, and use the manufacturer’s diagnostic utility only when you know the exact drive model. For an SSD, persistent stuttering, boot failures, or disappearing files can indicate a hardware issue rather than a scheduling problem.
Power settings also matter. A desktop in Adelaide or Canberra may remain on overnight, making a weekly schedule easy to run. A laptop carried between a Melbourne office, a university campus, and home may spend much of the week asleep or disconnected from power. In that case, choose a maintenance time when it is usually plugged in, or run optimisation manually after confirming the device is idle.
A well-configured Windows 10 Pro schedule should require very little attention. Weekly maintenance is suitable for most HDDs, while SSDs should remain under Windows’ automatic optimisation controls. Check the schedule after major hardware changes, keep important files backed up, and investigate warning signs instead of relying on defragmentation to fix every performance issue.
Open Defragment and Optimise Drives today, confirm that each disk has the correct schedule, and select a maintenance window that suits your routine. A few minutes of setup can help keep a Windows 10 Pro computer organised and ready for everyday work, study, streaming, and gaming.