To use Windows File Recovery, install it from the Microsoft Store, open it (it starts an administrator Command Prompt), and type a winfr command with three parts: the drive to scan, a different drive to save recovered files to, and a mode. For example, winfr C: E: /regular /n \Users\YourName\Documents\*.docx looks for deleted Word files from your Documents folder on C: and copies them to E:. Use regular mode for recently deleted files on a healthy NTFS drive and extensive mode for everything else, including SD cards, USB sticks and formatted drives.
This guide walks through installation, the modes, the switches you will actually use, worked examples and the tool's limits.
What Windows File Recovery is
Windows File Recovery is a free command-line tool from Microsoft. It works on Windows 10 version 2004 and later and on Windows 11, and can scan internal drives, external drives, USB flash drives and memory cards. It does not run in File Explorer or have any buttons: everything is done by typing commands.
The key rule: the source and destination drives must be different. You cannot recover files from C: back to C:. If your PC only has one drive, plug in a USB stick or external drive to receive the files.
Step 1: Install and open it
- Open the Microsoft Store and search for Windows File Recovery.
- Click Get or Install. The download is small.
- Open it from the Start menu and click Yes on the User Account Control prompt.
- A Command Prompt window opens showing the
winfrhelp text. You type your commands here.
If you are recovering from C:, installing from the Store writes a little data to C:. That is unavoidable but small. Do it as soon as possible after the delete.
Step 2: Choose a mode
| Scenario | File system | Mode |
|---|---|---|
| Recently deleted from a PC or external drive | NTFS | /regular |
| Deleted a while ago | NTFS | /extensive |
| After a format or on a corrupted drive | NTFS | /extensive |
| SD card, most USB sticks | FAT32 or exFAT | /extensive |
To check a drive's file system, right-click it in File Explorer and choose Properties. Regular mode reads the NTFS Master File Table and is fast. Extensive mode also searches the drive for file signatures, so it is slower but finds more.
Step 3: Build the command
The general syntax is:
winfr source-drive: destination-drive: [/mode] [/switches]
The switches you will use most:
/nfilters what to look for. Use it with a folder path (ending in a backslash), a file name, a wildcard such as*.jpg, or a word with wildcards such as*invoice*. You can use/nmore than once in a command./y:recovers only certain extension groups in extensive mode, such as/y:JPEG,PNG./?shows the help, and/!shows advanced options.
Worked examples
- Deleted Word documents from Documents on C:, saved to E:
winfr C: E: /regular /n \Users\YourName\Documents\*.docx - A whole deleted folder:
winfr C: E: /regular /n \Users\YourName\Desktop\Taxes\ - Any file with "invoice" in its name on USB stick E:, saved to D:
winfr E: D: /extensive /n *invoice* - Photos from SD card F:, saved to C:
winfr F: C: /extensive /n *.jpg /n *.png
Replace YourName with your actual user folder name, which you can see in C:\Users.
Step 4: Run it and find your files
- Type the command and press Enter.
- Confirm with Y when asked.
- Wait. Regular mode can be quick. Extensive mode reads the whole drive and can take a long time on large drives.
- When it finishes, it offers to open the results. Recovered files are placed in a folder named
Recovery_followed by the date and time, on the destination drive. - Open the recovered files to check them. Files from extensive mode may have generic names.
If you get "Source and destination cannot be the same", change the destination letter. If you get very few results from regular mode, try extensive mode with the same filter.
Tips for better results
- Filter tightly. Without a
/nfilter on C:, winfr tries to recover a huge number of system and temporary files. Point it at the folder or file type you actually need. - Remember the folder path rules. Paths start from the root of the drive without the drive letter, such as
\Users\YourName\Pictures\, and a folder filter must end with a backslash. - Put spaces in quotes. If a folder name contains spaces, wrap the path in double quotes, for example
/n "\Users\YourName\Documents\Tax returns\". - Leave room on the destination. An extensive scan of a whole card can produce thousands of files, so make sure the destination drive has plenty of free space.
- Run regular mode first on NTFS, because it is quick and keeps original names. Switch to extensive only if regular finds nothing.
Limitations to know about
- No preview. You only see what you recovered after it has been copied, so it is easy to restore thousands of files to find one, or to discover that a file is damaged only after the scan.
- No recovery rating. There is no indication of which files are intact and which are partly overwritten.
- Precise syntax. A wrong path or missing backslash gives empty results.
- Limited help with partitions. It is not designed to search for lost or deleted partitions.
- The same physical limits as any tool. It cannot recover overwritten files, data cleared by TRIM on an SSD, or data from a drive Windows cannot detect.
A graphical alternative
If you would rather click than type, or you want to check files before you restore them, a graphical recovery program is easier. Drive Restorer does the same core job with a quick scan and a deep scan, plus a partition search for lost partitions, filters by type, size, date and name, a preview of photos, videos and documents, and a recovery chance rating for each file. It restores only to a different drive, just like winfr.
Whichever tool you use, the rules are the same: stop using the drive, scan soon, and restore to another drive. Our guides to recovering deleted files in Windows 11 and quick scan vs deep scan cover those principles in more depth, and Drive Restorer follows them by design.
Frequently asked questions
Is Windows File Recovery free?
Yes. It is a free command-line app from Microsoft, available in the Microsoft Store for Windows 10 version 2004 and later and Windows 11.
Why does winfr say the source and destination must be different?
Writing recovered files to the drive being scanned could overwrite the files you are trying to recover, so winfr requires a different destination drive.
Which mode should I use for an SD card?
Extensive mode. Microsoft recommends extensive mode for FAT and exFAT drives such as SD cards and most USB sticks.
