How to ensure TRIM is enabled on Windows 10 to keep an SSD at top performance

Besides getting a speedy processor and as much RAM as you can afford, a Solid State Drive (SSD) also plays a very important role in making your PC fast. However, an SSD will stay on it best performance and last longer only if it's properly maintained.

TRIM is an ATA command set that was originally designed for the purpose of keeping a Solid State Drive at its optimal performance throughout its lifespan.

The TRIM feature allows Windows 10, or any supported operating system, to notify an SSD which blocks of data are no longer in use and can be safely wiped out to be writable again. Having this operation done ahead of time improves performance, as the drive won't have to spend time erasing a particular block when space is needed to store new data, ensuring the SSD reaches its advertised lifespan.

While the operating system should properly detect and enable TRIM automatically, sometimes this may not happen. In this Windows 10 guide, we'll show you the commands to make sure TRIM is configured and how to enable it when it's not.

How to check TRIM is enabled in your Windows 10 PC

Making sure that TRIM is enabled on Windows 10, you only need to use a command using the Command Prompt with administrator privileges.

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
  2. Type the following command and press Enter:fsutil behavior query DisableDeleteNotify

Explanation: If after executing the

fsutil

command with the

DisableDeleteNotify

you get a result of zero (0), then it means that TRIM is enabled, and no further action is required. However, if after running the command you see a result of one (1), then it means that TRIM is disabled.

How to enable TRIM on your Windows 10 PC

When TRIM isn't enabled on Windows 10, you need to do the following:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
  2. Type the following command and press Enter:fsutil behavior set DisableDeleteNotify 0

After running the command, you will notice the same DisableDeleteNotify = 0, which indicates that the feature is enabled.

How to disable TRIM

If at any time for any reason you need to disable TRIM, you need to do the following:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and select Command Prompt (Admin).
  2. Type the following command and press Enter:fsutil behavior set DisableDeleteNotify 1

For TRIM to work, both the operating system and the Solid State Drive must support the feature, and it must be enabled in the operating system.

While we're focusing the guide for Windows 10, you can use the same commands on Windows 7 and Windows 8.x.

Was TRIM enabled on your computer? Let us know in the comments below.

Windows 10 resources

For more tips, coverage, and answers on Windows 10, you can visit the following resources:

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.