Windows 11 manages drive health automatically, but verifying the status of your storage ensures your system runs efficiently. Mechanical hard drives (HDDs) require defragmentation to rearrange scattered data for faster read/write speeds, while solid-state drives (SSDs) use a TRIM command to maintain performance and extend lifespan. This guide walks you through the manual process for both drive types.
Before You Start: If your system uses an SSD, do not run a traditional defragmentation. Windows 11 handles SSD optimization differently to prevent unnecessary wear. The steps below apply to both, but the tool will automatically choose the correct method based on the drive type.
Step 1: Open the Optimize Drives Tool
- Click the Start button or press the Windows key on your keyboard.
- Type
defragin the search box that appears at the bottom of the screen. - Click the Defragment and Optimize Drives result from the list. If prompted by User Account Control (UAC), select Yes to allow the app to make changes.
This action launches the dedicated system utility that manages all storage optimization tasks. You will see a window listing every drive currently connected to your PC, including internal and external storage. If the window does not open, ensure you are logged in with an administrator account, as standard users may lack permission to modify drive settings.
Step 2: Review Drive Status and Type
- Examine the list of drives displayed in the main pane of the window.
- Check the Type column for each drive. It will display either Local Disk (HDD) or Solid State Drive (SSD).
- Look at the Current State column to see if the drive is already optimized. A status of OK means the drive is healthy and does not require immediate attention.
Understanding the drive type is critical because the optimization method differs. HDDs show a fragmentation percentage, indicating how scattered your files are. SSDs do not show fragmentation percentages because they access data differently. If your SSD shows a status other than OK, it may indicate a need for the TRIM command rather than defragmentation.
Step 3: Run the Optimization Process
- Select the drive you wish to optimize by clicking on its row in the list.
- Click the Optimize button located at the top right of the window.
- Wait for the progress bar to complete. The status will change from Optimizing… to OK when finished.
For HDDs, this process rearranges fragmented files into contiguous blocks, which can improve load times for large files and applications. For SSDs, Windows executes a TRIM command that tells the drive which data blocks are no longer in use, allowing the SSD to clean them up for future writes. This process can take anywhere from a few minutes to over an hour depending on the drive size and fragmentation level. You can continue using your PC while the optimization runs in the background.
Step 4: Configure Automatic Scheduling
- Click the Change settings link at the bottom of the Optimize Drives window.
- Ensure the Run on a schedule checkbox is enabled. Windows defaults to weekly optimization, which is sufficient for most users.
- Verify the schedule day and time if you prefer optimization to occur at a different time, such as when you are not using the PC.
- Click OK to save your changes and close the settings pane.
Automating this process ensures your drives remain healthy without requiring manual intervention. Windows 11 is designed to skip optimization if the battery is low on a laptop, preventing unnecessary drain. Enterprise editions of Windows 11 may have group policy settings that override these local schedules, so check with your IT administrator if the settings do not stick.
Pro Tip: If you frequently work with large media files, consider running optimization more often than the default weekly schedule. However, avoid running it daily on SSDs, as this provides no performance benefit and may reduce the drive’s lifespan over time.
Troubleshooting Common Issues
If you encounter errors while optimizing your drives, consider these solutions:
Operation not supported on this volume: This message typically appears if you try to defragment an SSD or a network drive. Windows handles SSDs with TRIM, so this error is informational. You can safely ignore it for SSDs.Access Denied: Ensure you are running the tool with administrator privileges. Right-click the Start button, select Terminal (Admin) or PowerShell (Admin), and typedefrag C: /U /Vto run optimization from the command line.- Optimization does not complete: If the process hangs, restart your PC and try again. Ensure no programs are actively writing to the drive being optimized, as this can cause conflicts.
- Drive not listed: If an external drive does not appear, disconnect and reconnect it, or check Device Manager to ensure it is recognized by the system.
Closing Tips
- Regular Checks: Even with automatic scheduling, check the Current State column monthly to ensure your drives are reporting OK.
- SSD Health: For SSDs, focus on TRIM rather than defragmentation. You can verify TRIM is enabled by opening PowerShell as admin and typing
fsutil behavior query DisableDeleteNotify. A result of0means TRIM is enabled. - Backup First: While optimization is generally safe, always maintain a recent backup of critical data before making changes to storage systems.
By following these steps, you ensure your Windows 11 system maintains optimal performance and your hardware operates efficiently. Proper drive optimization prevents slowdowns and extends the life of your storage devices.
Over to you: Do you manually check your drive optimization status, or do you rely on Windows to handle it automatically?



