The Windows File Recovery tool is a command-line app from Microsoft for recovering files deleted from local drives that are not in the Recycle Bin. You run it as winfr, with the format winfr source-drive: destination-drive: [/mode] [/switches]. Microsoft says to use Regular mode for recently deleted files on a healthy NTFS drive and Extensive mode for older deletions, formatted drives, corrupted disks and FAT or exFAT drives. The source and destination must be different drives.
What Is the Windows File Recovery Tool?
Microsoft's Windows File Recovery page says it applies to Windows 11 and Windows 10, and notes that Windows 10 support ended on October 14, 2025. It recovers files from internal, external and USB drives. Microsoft says recovery on cloud storage and network file shares is not supported.
How to Use the Windows File Recovery Tool
- Install the app from the Microsoft Store if you do not have it.
- Search for Windows File Recovery in the Start menu and approve the permission prompt.
- In the Command Prompt window, enter the command in this format: winfr source-drive: destination-drive: [/mode] [/switches]
- Choose a mode (see the next section) and add /n with a file name, path, type or wildcard.
- Press Y to confirm and start. Press Ctrl + C to stop.
Microsoft creates a folder named Recovery_ followed by the date and time on the destination drive. Always use drive letters with colons, put a space between the source and destination, end folder paths with a backslash, and put quotes around paths that contain spaces.
Which Mode Should You Use?
| File system | Situation | Mode Microsoft recommends |
|---|---|---|
| NTFS | Deleted recently | Regular |
| NTFS | Deleted a while ago | Extensive |
| NTFS | After formatting | Extensive |
| NTFS | Corrupted disk | Extensive |
| FAT or exFAT | Any | Extensive |
Microsoft says that if you are unsure, you can start with Regular mode. If recovery fails, retry in Extensive mode if the file type is supported.
Windows File Recovery Tool Examples From Microsoft
Regular mode:
- Recover the Documents folder from C: to the recovery folder on E:. Do not forget the backslash at the end of the folder.
winfr C: E: /regular /n \Users\<username>\Documents\
- Recover PDF and Word files from C: to E:.
winfr C: E: /regular /n *.pdf /n *.docx
Extensive mode:
- Recover any file with the string invoice in the file name from E: to C:.
winfr E: C: /extensive /n *invoice*
- Recover JPEG and PNG photos from the Pictures folder.
winfr C: E: /extensive /n \Users\<username>\Pictures\*.JPEG /n \Users\<username>\Pictures\*.PNG
Microsoft says <username> is a placeholder. Check C:\users in File Explorer to find the correct name.
Advanced Switches and Modes
Microsoft lists two more modes. Segment mode recovers files on NTFS drives through file record segments. Signature mode works on any file system by searching for file headers, and it can be limited to specific types with /y. Both need the /s sector count and the /b cluster size of the source device.
| Switch | What Microsoft says it does |
|---|---|
| /n | Filters by file name, path, type or wildcard. |
| /u | Recovers undeleted files, such as from the Recycle Bin (NTFS and Segment). |
| /k | Recovers system files (NTFS and Segment). |
| /o | Sets overwrite behavior: always (a), never (n) or keep both (b). |
| /e | Turns off the default file-type filter. |
| /p | Saves the log file to a location other than the default. |
| /a | Suppresses prompts, which is useful in scripts. |
Microsoft says many system and developer file types, such as DLLs, executables, logs and config files, are hidden by default so results focus on user files.
Tips and Warnings From Microsoft
- Act quickly and minimize computer use after deletion. Deleted space can be overwritten at any time, which is especially likely on SSDs.
- Do not create a new partition after data loss, because that reduces the chance of recovery.
- Recovery can be slow, especially in Extensive mode. If the destination fills, choose Resume, Skip file or Abort after freeing space.
- Use /n filters on the OS drive, because Windows creates and deletes files constantly.
- Files recovered from the Recycle Bin may appear as $files.xxx inside a $RECYCLE.BIN folder.
Checklist: Windows File Recovery Tool
- Stop using the drive that held the deleted files.
- Pick a destination drive that is different from the source.
- Choose Regular or Extensive mode from the table above.
- Add /n filters for the files you need.
- Open the Recovery folder on the destination drive when it finishes.
This order is ours. Microsoft documents these points on one page and does not number them as a checklist. For other routes, see our guides on recovering deleted data from a desktop computer and recovering data from an SSD.
What Do These Sources Not Say?
- Microsoft's page does not list a success rate or a recovery time.
- It does not mention ReFS in the mode table.
- We could not open Microsoft's separate command reference for winfr, so this guide relies on the Windows File Recovery support page only.
Frequently Asked Questions
Does Windows File Recovery restore files from the cloud?
No. Microsoft says recovery on cloud storage and network file shares is not supported.
Can I recover files to the same drive?
No. Microsoft says the source and destination must be different drives or partitions.
Where do recovered files go?
Into a Recovery folder named with the date and time on the destination drive.
Key Takeaways
- Windows File Recovery runs as winfr from Command Prompt.
- Regular mode suits recent NTFS deletions, and Extensive mode suits everything else.
- Recover to a different drive and stop using the source drive.
- Act quickly, because deleted space can be overwritten.
Sources and References
Facts follow Microsoft Support.
- Windows File Recovery (Microsoft Support) support.microsoft.com