Windows File Recovery: Step-by-Step Guide
In this article
Windows File Recovery is a free command-line tool from Microsoft that can restore deleted files from hard drives, USB drives, and memory cards. It works even if the Recycle Bin has been emptied, provided the file hasn't been overwritten. You'll need to run commands in an elevated Command Prompt or PowerShell, but the steps below walk you through the entire process.
What You'll Need
- A Windows 10 or Windows 11 PC (the tool is built into Windows 10 version 2004 and later, and Windows 11).
- The drive where the file was deleted (e.g., C:, D:, or an external drive).
- Another drive or partition to save the recovered files to (do not save to the same drive you're recovering from, as that can overwrite the data).
- Administrator privileges on the PC.
Step-by-Step
- Stop using the drive immediately. As soon as you realize a file is missing, avoid writing anything new to that drive. Every new file or even a simple boot can overwrite the deleted data, making recovery impossible.
- Open Command Prompt or PowerShell as Administrator. Click the Start button, type "cmd" or "PowerShell", right-click the result, and select "Run as administrator". If prompted by User Account Control, click "Yes".
- Check if Windows File Recovery is installed. In the command window, type
winfr /?and press Enter. If you see a list of commands, it's ready. If you see "not recognized", install it from the Microsoft Store by searching for "Windows File Recovery". - Identify your source and destination drives. Note the drive letter of the drive where the file was deleted (source) and the drive letter where you'll save the recovered files (destination). For example, if the file was on your C: drive and you have a D: drive for backups, source is C: and destination is D:.
- Choose a recovery mode. The two main modes are:
- Regular – for drives that are healthy (no corruption) and use NTFS file system. Use this for most everyday deletions.
- Extensive – for drives that are corrupted, formatted, or use FAT/exFAT file systems (like USB drives). This mode is slower but more thorough.
- Run the recovery command. The basic syntax is:
winfr source-drive: destination-drive: /mode
For example, to recover from C: to D: in Regular mode:winfr C: D: /regular
If you need Extensive mode:winfr C: D: /extensive
- Add filters to narrow the search (optional). If you know the file type or name, use the /n switch. For example, to recover only JPEG images:
winfr C: D: /regular /n *.jpg
To recover a specific file:winfr C: D: /regular /n \Users\YourName\Documents\report.docx
Note the backslashes and the exact path. - Confirm the recovery. After you press Enter, the tool will ask you to confirm that you want to continue. Type
Yand press Enter. - Wait for the scan to finish. The time depends on the drive size and mode. Regular mode can take minutes; Extensive can take hours. Do not close the command window.
- Find your recovered files. When done, the tool creates a folder on the destination drive called
Recovery_<date>_<time>. Inside, you'll find subfolders like_FileList(a list of recovered files) and_Recovered_<file type>(actual files). Copy the files you need to a safe location.
Common Mistakes
- Recovering to the same drive. This is the #1 mistake. Saving recovered files to the same drive can overwrite the very data you're trying to recover.
- Waiting too long. The longer you use the drive after deletion, the lower the chance of recovery. Act quickly.
- Using the wrong mode. Using Regular mode on a formatted or corrupted drive won't work. Use Extensive for those cases.
- Forgetting to run as Administrator. The tool requires elevated privileges; otherwise, it will show an error.
- Typing the path incorrectly. The /n filter is case-insensitive but must use backslashes and the full path. A wrong path returns no results.
Tips
- If you're not sure whether the drive is NTFS or FAT/exFAT, open File Explorer, right-click the drive, select Properties, and look at the "File system" line.
- For best results, use an external drive as the destination. That avoids any chance of overwriting the source.
- If you can't remember the exact file name, use a wildcard like
*.docxto recover all Word documents. - After recovery, immediately back up the recovered files to a cloud service or another external drive.
- Consider enabling File History or a backup solution to avoid future data loss.
Troubleshooting
"Access denied" error. Make sure you're running Command Prompt as Administrator. Right-click and select "Run as administrator".
"The system cannot find the path specified." Check that the source and destination drive letters are correct. Also, if you used a /n filter, ensure the path is correct and uses backslashes.
Recovery takes too long. Extensive mode is slow by design. If you're in a hurry, try Regular mode first. If that fails, then run Extensive.
No files are found. If the file was overwritten, recovery may be impossible. Try a different mode (Extensive) or a third-party recovery tool as a last resort. Also, ensure you're not recovering to the same drive.
Command not recognized. Install Windows File Recovery from the Microsoft Store. If it's already installed, restart your PC and try again.
Frequently Asked Questions
Can I recover files from a formatted drive?
Yes, but only with Extensive mode. The drive must not have been used much after formatting. Regular mode won't work on a formatted drive.
Does Windows File Recovery work on external drives and USB sticks?
Yes, it works on any drive that Windows can read, including external hard drives, USB flash drives, and SD cards. Use Extensive mode for FAT/exFAT file systems.
How long does recovery take?
Regular mode can take anywhere from a few minutes to half an hour. Extensive mode can take several hours, depending on drive size and speed.
Can I recover a file that was deleted from the Recycle Bin?
Yes, as long as the file hasn't been overwritten. The Recycle Bin is just a folder; emptying it marks the space as available, but the data remains until overwritten.
Will Windows File Recovery recover files from a system that won't boot?
No, the tool runs inside Windows. If your PC won't boot, you can try booting from a Windows installation USB and using the Command Prompt from the repair options, but that's more advanced.
Is there a GUI version?
No, Windows File Recovery is command-line only. There are third-party GUI tools that wrap around it, but they are not official.