How to Recover Deleted Files in Windows (2024)

Delete a file in Windows, and you can often recover it even if it’s no longer in the Recycle Bin. Third-party data recovery tools are available, but they can be expensive. As an alternative, Microsoft offers a command-line utility called Windows File Recovery that restores deleted files. Available in the Microsoft Store, the app supports Windows 10 with the May 2020 Update or higher as well as Windows 11.

Windows File Recovery can revive photos, documents, videos, and other types of files on a mechanical hard drive, SSD, USB drive, or memory card. The program supports FAT, NTFS, and exFAT file systems. FAT and exFAT are used for SD cards, flash drives, and USB drives with less than 4GB of storage. NTFS is typically used on mechanical drives, SSDs, external hard drives, flash drives, and USB drives larger than 4GB.

PCMag-Recommended Windows Accessories

How to Recover Deleted Files in Windows (1)

Microsoft 365 Review

4.5

Outstanding

  • $69.99 Per Year at Microsoft StoreSee It

How to Recover Deleted Files in Windows (2)

Microsoft Ergonomic Keyboard Review

4.0

Excellent

  • $101.00 at AmazonSee It

How to Recover Deleted Files in Windows (4)

BenQ EX2780Q Review

4.0

Excellent

  • $499.99 at AmazonSee It

How to Recover Deleted Files in Windows (5)

Microsoft Modern Keyboard With Fingerprint ID Review

3.5

Good

  • $129.99 at Microsoft StoreSee It

How to Recover Deleted Files in Windows (6)

Microsoft Bluetooth Ergonomic Wireless Mouse Review

4.0

Excellent

  • $69.95 at AmazonSee It

How to Recover Deleted Files in Windows (7)

Microsoft Designer Compact Keyboard Review

4.0

Excellent

  • $37.99 at Amazon$69.99Save $32.00See It

How to Recover Deleted Files in Windows (8)

Microsoft Surface Mobile Mouse Review

4.5

Outstanding

  • $34.99 at Microsoft StoreSee It

File Recovery Modes

The initial version of Windows File Recovery released in the summer of 2020 offered three different recovery modes: Default, Segment, and Signature, each one geared for specific circ*mstances. The version launched during the winter of 2021 narrowed your options to two modes as a way to simplify the program:

  • Regular mode is designed to recover recently deleted files. It supports drives formatted with NTFS partitions—typically hard drives, solid state drives, external hard drives, USB drives, and flash drives with more than 4GB of space. This mode is quick but may not find the file you want.

  • Extensive mode is designed to recover files that were deleted a while ago, after the drive has been reformatted, or if the disk itself has been corrupted. Extensive mode supports NTFS, FAT, and exFAT partitions. This mode takes longer to scan your disk but stands a better chance of tracking down the deleted file.

If you’re not sure which mode to use, Microsoft recommends that you start with regular mode. The following table may also help you decide:

As a command-line tool, Windows File Recovery is certainly trickier to use than a traditional GUI application. But if you know the steps and are comfortable working at the command prompt, you can use this utility to revive a file that seems to be permanently gone.

Install and Open Windows File Recovery

How to Recover Deleted Files in Windows (9)

If you’re using Windows 10, make sure you’re running the May 2020 Update (Windows 10 2004) or higher. To check, go to Settings > System > About and scroll down to the Windows specifications section. If the Version number says 2004 or higher, you’re good to go.

Otherwise, move to Settings > Update & Security and click Check for Updates to grab the latest update. If you’re using Windows 11, you’re already set up to use the tool.

How to Recover Deleted Files in Windows (10)

Open the Microsoft Store and browse to the Windows File Recovery page. Click the Get button to download the program.

How to Recover Deleted Files in Windows (11)

To recover a deleted file, open Windows File Recovery from its Start menu shortcut. In Windows 11, you may need to click the All Apps link in the Start menu to find the shortcut.

How to Recover Deleted Files in Windows (12)

A command prompt window opens to show you the right syntax to use with the command as well as a few examples. The basic syntax for the command is as follows:

winfr source-drive: destination-drive: [/mode] [/switches]

Run a Search in Regular Mode

As an example, let’s say you wanted to find a recently deleted file named myresume.docx stored in your Documents folder on the C drive and save the recovered version on a USB stick set up as your E drive. If you used Regular Mode, you would type the following command, substituting with your actual username:

winfr C: E: /regular /n users\\documents\myresume.docx

Before you run such a command, there are a few conditions. The source and destination drives must be different. If your PC isn’t outfitted with two drives, just plug in a USB drive and use that as the destination. The tool automatically creates a folder called Recovery_ on the destination drive, which it uses to store the recovered file.

You can specify a different folder for the file, but let’s stick with the default option. Also, if the folder or filename contains spaces, you’ll need to enclose the entire path in quotes, as in:

winfrC: E: /regular /n "\users\\documents\my resume.docx.”

How to Recover Deleted Files in Windows (13)

After you type the command, the tool prompts you to continue. Type Y, and Windows File Recovery scans your drive for the deleted file. If the file is located, the app tries to recover it. If successful, the app places it in the Recovery_ folder on the destination drive. The command ends by asking if you want to view recovered files. Type Y.

How to Recover Deleted Files in Windows (14)

You’ll then see the Recovery folder and a RecoveryLog.txt file on the destination drive. Drill through the folders under Recovery until you find the recovered file. Open the file to make sure that it’s intact and readable.

How to Recover Deleted Files in Windows (15)

If the file fails to turn up in the Recovery folder, you have a few options. You can try again, and this time specify the location without a filename, as in:

winfr C: E: /regular /n users\\documents\

This option will also turn up any other deleted files in that folder. Just make sure to add a backslash at the end of the folder name.

How to Recover Deleted Files in Windows (16)

You can also specify the filename without a location by typing:

winfr C: E: /regular /n myresume.docx

This option will search your entire hard drive for the file. Another option is to add a wildcard to replace the filename or extension, for example:

winfr C: E: /regular /n users\\documents\myresume.*

winfr C: E: /regular /n users\\documents\*.docx

Run a Search in Extensive Mode

How to Recover Deleted Files in Windows (17)

If you’re still unable to find or recover the file, then it’s time to try extensive mode. Here, you simply replace the /regular switch with /extensive but still use the other options for location and filename, as in:

winfr C: E: /extensive /n users\\documents\myresume.docx

After typing the command, follow the same steps you used with regular mode to recover your file. For more information and details on using the app and its different switches, refer to Microsoft’s support page on recovering lost files with Windows.

Like What You're Reading?

Sign up for Tips & Tricks newsletter for expert advice to get the most out of your technology.

This newsletter may contain advertising, deals, or affiliate links. Subscribing to a newsletter indicates your consent to our Terms of Use and Privacy Policy. You may unsubscribe from the newsletters at any time.


Thanks for signing up!

Your subscription has been confirmed. Keep an eye on your inbox!

Sign up for other newsletters

How to Recover Deleted Files in Windows (2024)
Top Articles
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6102

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.