Authored by: Support.com Tech Pro Team
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.
In this guide, you will learn How to Recover Deleted Files in Windows 10 and 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.
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 circumstances. The version launched during the winter of 2021 narrowed your options to two modes as a way to simplify the program:
If you’re not sure which model 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.
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.
Open the Microsoft Store and browse to the Windows File Recovery page. Click the Get button to download the program.
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.
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]
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 <username> with your actual username:
winfr C: E: /regular /n users\<username>\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_<date and time> 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:
winfr C: E: /regular /n "\users\<username>\documents\my resume.docx.â€
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_<date and time> folder on the destination drive. The command ends by asking if you want to view recovered files. Type Y.
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.
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\<username>\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.
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\<username>\documents\myresume.*
winfr C: E: /regular /n users\<username>\documents\*.docx
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\<username>\documents\myresume.docx
After typing the command, follow the same steps you used with regular mode to recover your file.