Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

This Itechguide teaches you how to defrag Windows 10. The guide covers steps for 3 methods to defrag Windows 10 – Defragment Tool, Command Prompt, PowerShell.

Option 1: Defrag with Defragment Tool

The Defragment Tool allows you to perform one-time, manual defragmentation or scheduled, automatic defragmentation.

Method 1: Manual Defragmentation

  • Type defrag in the search box. Then select Defragment and Optimise Drives.
How to Defrag Windows 10 with Defragment Tool
  • When the Optimise Drives tool opens, select the drive you want to defrag. Then, on the bottom right of the tool, click Optimise.
How to Defrag Windows 10 with Defragment Tool

Method 2: Scheduled Automatic Defragmentation

  • You can also schedule your computer to defragment automatically. To manage the settings, beneath Scheduled optimization, click Change settings.
  • To turn off scheduled automatic defragmentation, uncheck the checkbox beside Run on a schedule (recommended).
  • Alternatively, leave the box checked and select how often (Frequency) you want the defragmentation to run.
  • Then, beside Drives, click Choose and select or deselect the drives you want to add to or remove from the automatic defragmentation schedule.
  • When you finish click OK.
  • Finally, on the Optimisation schedule screen, click OK.
How to Defrag Windows 10 with Defragment Tool

Option 2: Defrag with Command Prompt

  • Search command prompt and click Run as administrator.
How to Defrag Windows 10 with Command Prompt
  • If you receive the User Account Control tool prompting you to allow the app to make changes to your computer, click Yes.
  • On the Command Prompt, type the command below and press enter
defrag /C /H /V /O
  • Wait for the operation to complete. If everything goes well, you should receive “The operation completed successfully”. You should also receive a “Post Defragmentation Report”
How to Defrag Windows 10 with Command Prompt
  • To learn more about the defrag switches used in the previous command and other available switches, type the command below and press enter.
defrag /? | more
  • Piping “defrag /?” to “more”, forces command prompt to display the results one page per time. To display more pages, press the enter key.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Option 3: Defrag with PowerShell

  • Type PowerShell in the search box and click Run as Administrator.
  • If you receive the User Account Control tool prompting you to allow the app to make changes to your computer, click Yes.
  • Then on the PowerShell command, type the command below and press enter:
 Optimize-Volume -DriveLetter <drive_letter> -Verbose 
Change <drive_letter> to the drive letter for the drive you want to defrag. For example, to defragment drive C, change <drive_letter> to C. Here is a command to defrag drive C…
Optimize-Volume -DriveLetter C -Verbose 
  • When you press enter, the command will start running. Verbose switch forces PowerShell to display the progress of the command. The second image below shows the final result.

It is very easy to defrag Windows 10! I hope this Itechguide was helpful. If it was, click on “Yes” beside the “Was this page helpful” question below.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Popular on Amazon
SANDISK 2TB Extreme Portable SSD, Up to 1050MB/s Read Speeds (Old Model) | External Solid State Drive, IP65 Water & Dust Resistance, Up to 3M Drop Protection, 256-bit AES Encryption, USB-C 3.2 Gen 2
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Finally, for more Windows 10 Itechguides, visit our Windows How-To page.

Quick Recap

Bestseller No. 3
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$145.69
SaleBestseller No. 4
SANDISK 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model | External Solid State Drive, IP65 Water & Dust Resistant, Up to 3M Drop Protection, 256-bit AES Encryption, USB-C 3.2 Gen 2
SANDISK 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model | External Solid State Drive, IP65 Water & Dust Resistant, Up to 3M Drop Protection, 256-bit AES Encryption, USB-C 3.2 Gen 2
IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.; POCKET-SIZED – fits easily in pockets and small bags.
$239.50
Bestseller No. 5
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$216.99
Also popular on Amazon
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
Also popular on Amazon
Sale
SANDISK 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model | External Solid State Drive, IP65 Water & Dust Resistant, Up to 3M Drop Protection, 256-bit AES Encryption, USB-C 3.2 Gen 2
  • NEARLY 2X FASTER THAN OUR PREVIOUS GENERATION(8) – move 1,000 high-res photos in under 60 seconds(6) with up to 2000MB/s transfer speeds(2).
  • IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.
  • POCKET-SIZED – fits easily in pockets and small bags.
  • SPACE TO OWN YOUR AI CONTENT – speed and capacity to download your high-res clips and photo edits.
  • 256-BIT AES ENCRYPTION(4) – helps keep private files secure with password protection.
Also popular on Amazon
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
Also popular on Amazon
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model) | External Solid State Drive, Compatible with Laptops & Tablets, Up to 2M Drop Protection, USB 3.2 Gen 2, USB-C to USB-A Cable
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of November 7, 2026 7:13 am GMT.