Some links on PCFix411 may earn a commission from GearReady, software partners, or Amazon Associates at no extra cost to you.
Accidentally deleting an important file does not always mean the data is gone immediately. Windows can mark the file’s storage space as available while some of the underlying data still remains on the drive. The problem is that normal computer use can overwrite that space at any time.
Microsoft’s Windows File Recovery is a command-line app available through the Microsoft Store that can attempt to recover deleted files from local storage devices such as internal drives, external drives and USB devices. It is not a replacement for backups, and it cannot recover files from cloud storage or network shares.
First Rule: Stop Using the Source Drive
Microsoft’s current guidance says to minimize or avoid using the computer after a file is deleted if you want the best chance of recovery. Every download, browser cache file, Windows update or application write can reuse free space that may still contain the deleted data.
If the missing file was on your Windows system drive, avoid installing unrelated software or copying large files to that drive while you recover it.
Check the Easy Recovery Options First
- Recycle Bin for normally deleted files.
- OneDrive or another cloud service if the folder was synchronized.
- File History or backup software if you had backups configured.
- Previous Versions where applicable.
- The application’s own autosave or recovery folder.
Windows File Recovery is most useful when the file is no longer available through those simpler options.
Install Windows File Recovery
Get Windows File Recovery from the Microsoft Store. After installation, search Start for Windows File Recovery and run it. Windows will ask for administrator permission because the tool needs low-level access to storage.
The Basic Command Structure
Microsoft documents the command format as winfr source-drive: destination-drive: /mode /switches.
The source is the drive where the file was deleted. The destination is where recovered files will be written.
Source and Destination Drives Must Be Different
This is one of the most important rules. Microsoft requires the recovery destination to be a different drive from the source. If you are recovering from C:, use another drive such as an external USB drive or a second internal drive as the destination.

Regular Mode vs Extensive Mode
| Mode | Use It When |
|---|---|
| Regular | The drive is healthy and the file was deleted relatively recently from a supported NTFS volume. |
| Extensive | The deletion was longer ago, the file system or circumstances are less straightforward, or Regular mode does not find the file. |
Start with the least intensive appropriate mode. If Regular does not find what you need, try Extensive.
Recover a Specific Folder
Microsoft provides examples that use the /n filter to target a folder. The pattern is to specify the source drive, a different destination drive, the recovery mode and then the folder path you want to search. Replace the example username and path with your actual folder.
Recover Specific File Types
You can use filters to target extensions instead of scanning for everything. For example, you can filter for *.pdf, *.docx, *.jpg or other file types. This is often more manageable than recovering every deleted file on a large drive.
Recover a File When You Remember Part of the Name
Wildcards can search for a portion of the filename. Microsoft’s documentation gives an example using a name fragment such as *invoice*. This can be useful when you remember a keyword but not the exact file name or extension.
Why SSD Recovery Can Be Harder
Modern SSDs use TRIM and internal garbage-collection behavior that can make deleted data disappear much faster than on an older mechanical hard drive. A file that was deleted from an SSD may become unrecoverable even if the drive appears lightly used afterward.
This is one reason backups matter more than recovery software. Recovery is a best-effort process, not a guarantee.
What About USB Flash Drives and External Drives?
Windows File Recovery can be used with local removable storage, but the source and destination still need to be different devices or drive letters. If the deleted file was on a USB flash drive, recover it to another physical drive rather than back to the same USB device.
Do Not Recover Onto the Same Drive
Writing recovered files back to the source can overwrite other deleted data before it has been recovered. Always use a separate destination drive.
If you only have one internal drive, connect an external SSD, hard drive or sufficiently large USB storage device before starting.
When Windows File Recovery Is the Wrong Tool
- The drive is physically failing, clicking or repeatedly disconnecting.
- The drive contains highly valuable legal, business or irreplaceable data and you cannot risk further damage.
- The storage device is not recognized reliably by Windows.
- You need recovery from cloud storage or a network share.
- The files were encrypted by ransomware.
A failing physical drive can get worse with repeated scans. For irreplaceable data, stop using it and consider a professional recovery lab.
What if the Drive Is Failing?
Symptoms such as clicking noises, SMART warnings, repeated I/O errors, very slow reads or random disconnects suggest a hardware problem. Do not treat that like a normal accidental deletion.
For storage-upgrade and drive-health context, see How to Choose an SSD for Your PC.
What if Malware or Ransomware Deleted the Files?
Disconnect the affected computer from the network and address the security incident first. Recovery attempts can complicate evidence or allow more encryption if the malware remains active.
Use How to Remove Viruses and Malware from Windows 11 in 2026 for a broader cleanup and recovery sequence.
After Recovery: Verify Every Important File
A file may be recovered with the correct name but still contain missing or corrupted data. Open important documents, images, videos and archives to verify them before deleting the recovery folder or reusing the source drive heavily.
Recovered files may also lose their original folder structure or names, especially after deeper scans.
Build a Backup Plan So You Do Not Need Recovery Again
File recovery is uncertain. Backups are predictable when they are configured and tested. Keep at least one independent copy of irreplaceable files and consider a combination of local and cloud backup depending on sensitivity and size.
A backup should protect against accidental deletion, device failure and ransomware rather than simply duplicating files onto another folder on the same drive.
Windows File Recovery Checklist
- Stop using the source drive as much as possible.
- Check Recycle Bin, cloud trash and backups first.
- Connect a different destination drive.
- Install Windows File Recovery from Microsoft Store.
- Start with Regular mode when appropriate.
- Use filters for the folder, filename or extension you need.
- Try Extensive mode if Regular mode fails.
- Do not write recovered files back to the source.
- Verify recovered files before trusting them.
- Use professional recovery for failing hardware or irreplaceable data.
Microsoft maintains current commands and mode guidance in its Windows File Recovery documentation.
Bottom Line
Windows File Recovery is a useful free last-mile tool when a deleted file is gone from Recycle Bin and backups are unavailable. Your best chance comes from acting quickly, minimizing writes to the source drive, recovering to a different device and using targeted filters. For anything irreplaceable or involving failing hardware, stop experimenting early and consider professional recovery before the drive deteriorates further.






