How to recover deleted files in Windows 11? Check the Recycle Bin first, then restore from a backup such as File History or OneDrive. If the file is in neither place, install Windows File Recovery from the Microsoft Store and run the winfr command in a Command Prompt window. Microsoft says the app works on local drives, including internal, external and USB drives, and not on cloud storage or network shares.
Check the Recycle Bin and Your Backups First
Microsoft tells you to use Windows File Recovery only if you cannot find the file in a backup. Start with the quick options:
- Recycle Bin: open it, select the files or folders you want, right-click them and select Restore. Each item returns to its original folder.
- File History: open File Explorer and go to the folder that held the file. Right-click the folder name and select Restore previous versions. On the Previous Versions tab, pick a version from before the deletion, then select Restore. To avoid overwriting the current version, expand Restore and choose Restore to.
- OneDrive: sign in at onedrive.com and select Recycle bin in the navigation pane. Select the item and then select Restore. Microsoft says personal accounts keep deleted items for 30 days and work or school accounts keep them for 93 days, unless your administrator changed the setting.
File History only helps if it was turned on before the file was lost. It needs an external drive or a network location to store the copies.
What Is Windows File Recovery?
Windows File Recovery is a command-line app from the Microsoft Store. It works on Windows 11 and Windows 10 and tries to recover files from internal drives, external drives and USB devices. Microsoft explains why recovery is possible. In the file system, the space used by a deleted file is marked as free, so the data can still exist until something writes over it.
For that reason, Microsoft advises you to minimize or avoid using the computer after you lose a file. New activity on the drive can overwrite the space your file used.
How to Recover Deleted Files in Windows 11 With winfr
Follow these steps for the winfr command:
- Check the file system. In File Explorer, right-click the drive, select Properties and note whether it is NTFS, FAT or exFAT.
- Pick a different destination. The source and destination must be different drives or partitions. With only one drive, use a USB or external drive as the destination.
- Install the app. Get Windows File Recovery from the Microsoft Store, then open it from the Start menu. It opens a Command Prompt window.
- Choose a mode. Use the table in the next section.
- Enter the command. The format is winfr source-drive: destination-drive: /mode /switches. Add one or more /n filters for the file name, folder path or file type.
- Confirm and wait. Enter Y when prompted to start. Press Ctrl and C to stop. Extensive mode and large drives can take a long time.
- Open the output folder. Windows creates a folder named Recovery followed by the date and time on the destination drive.
Do not create a new partition after data loss, because that lowers your chances of recovery.
Regular or Extensive Mode?
Microsoft describes two basic modes. If you are unsure, start with Regular.
| Situation | Mode |
|---|---|
| NTFS drive, file deleted recently | Regular |
| NTFS drive, file deleted a while ago | Extensive |
| NTFS drive after formatting | Extensive |
| Corrupted NTFS disk | Extensive |
| FAT or exFAT drive | Extensive only |
Microsoft lists computer drives (HDD and SSD), external hard drives, and flash or USB drives over 4 GB as typical NTFS devices. SD cards and flash or USB drives under 4 GB are typically FAT or exFAT.
winfr Command Examples
These examples come from the Microsoft page. Replace the username and drive letters with your own.
- Documents folder: winfr C: E: /regular /n \Users\username\Documents\
- PDF and Word files: winfr C: E: /regular /n *.pdf /n *.docx
- Any file with a word in its name: winfr E: C: /extensive /n *invoice*
- Names with spaces: put the path in quotes, for example "\Users\username\Documents\Quarterly Statement.docx"
Include the drive letter and colon, and leave a space between source and destination. End a folder path with a backslash. Use /n filters so the app does not pick up operating system files that Windows creates and deletes constantly. If Regular mode fails and the file type is supported, try Extensive mode.
What If winfr Does Not Find the File?
Microsoft warns that free space may be overwritten, especially on SSDs. Recovery is not guaranteed, so keep working from backups where you can. For other drives and partitions, see our guides on how to recover deleted files from NTFS partitions and how to recover deleted photos from a USB drive.
What Do These Sources Not Say?
The Windows File Recovery page gives no success rate and does not say how long a recovery takes. It does not list a Windows build number, and it gives no minimum size for the destination drive. The File History article gives one set of steps for Windows 11 and Windows 10, so it has no Windows 11 specific version, and it does not state how often backups run or how long copies are kept. Neither Microsoft page says what to do if File History was never turned on, beyond using another backup or the app.
Frequently Asked Questions
How to recover deleted files in Windows 11 without software?
Check the Recycle Bin, then restore a previous version with File History or restore from the OneDrive recycle bin. Windows File Recovery is a Microsoft app that runs from the command line.
Does Windows File Recovery work on Windows 11?
Yes. Microsoft lists Windows 11 and Windows 10 as supported systems.
What does the winfr command do?
It searches the source drive for deleted files and copies what it finds to a folder on the destination drive.
Can I recover files to the same drive?
No. The source and destination must be different drives or partitions, and the app shows an error if they are the same.
Can winfr recover files from OneDrive or a network share?
No. Microsoft says recovery on cloud storage and network file shares is not supported.
Which mode should I use for a USB drive?
Use Extensive mode for FAT and exFAT drives. Microsoft says non-NTFS file systems are supported only in Extensive mode.
Key Takeaways
- Check the Recycle Bin and your backups first, then use Windows File Recovery.
- Use a different drive as the destination, and stop using the source drive.
- Use Regular mode for recent NTFS deletions and Extensive mode for everything else.
- Recovery is not guaranteed, and it is less likely on an SSD or after the space is overwritten.
Sources and References
Facts follow Microsoft Support.
- Windows File Recovery, Microsoft Support support.microsoft.com
- Backup and restore with File History, Microsoft Support support.microsoft.com
- Restore deleted files or folders in OneDrive, Microsoft Support support.microsoft.com