Why You Need the Windows File Recovery Tool
Accidentally deleting a critical file in Windows 11 is a stressful experience. While the Recycle Bin is the first place to look, files that have been permanently deleted (using Shift + Delete) or removed from a formatted drive are no longer accessible through the standard user interface.
However, when a file is deleted, Windows does not immediately erase the data. Instead, it marks the space as available for new data. If you act quickly, the Windows File Recovery (Winfr) tool—an official command-line utility from Microsoft—can scan the drive and restore these lost files before they are overwritten.
Requirements for Windows File Recovery
Before beginning the recovery process, ensure you have the following:
- A system running Windows 11 (or Windows 10 build 19041 and later).
- The Windows File Recovery app, which must be downloaded from the Microsoft Store.
- A separate drive to save the recovered files. Never save recovered files to the same drive you are recovering from, as this can overwrite the deleted data permanently.
How to Install Windows File Recovery
- Open the Microsoft Store from the Windows 11 taskbar or Start menu.
- Search for Windows File Recovery.
- Click Get or Install to download the official Microsoft application.
Understanding the Recovery Modes
The tool uses two primary modes depending on your file system and how the file was lost:
- Regular Mode: Best for recently deleted files on NTFS drives (the standard format for Windows internal hard drives).
- Extensive Mode: Best for files deleted a while ago, formatted drives, or non-NTFS file systems like FAT32 or exFAT (commonly used for USB flash drives and SD cards).
How to Recover Deleted Files
Step 1: Launch the Tool as Administrator
- Press the Windows Key, type
Windows File Recovery, and select Run as administrator. - A Command Prompt window will open with the
winfrprompt ready for your commands.
Step 2: Construct the Recovery Command
The basic syntax for the command is:
winfr source-drive: destination-drive: [/mode] [/switches]
For example, if you want to recover a specific document from your C: drive and save it to your D: drive, you will use the Regular mode and specify the file type or name.
Step 3: Recovering Specific File Types
If you want to recover all PDF and Word documents recently deleted from your Documents folder on the C: drive, and save them to an external E: drive, enter the following command:
winfr C: E: /regular /n \Users\YourUsername\Documents\*.pdf /n \Users\YourUsername\Documents\*.docx
Replace YourUsername with your actual Windows account name. Press Enter to run the command.
Step 4: Recovering from a Formatted USB Drive
If you accidentally formatted a USB drive (F:) and need to recover photos, you must use Extensive mode. To recover JPEG and PNG files to your main C: drive, use this command:
winfr F: C: /extensive /n *.jpeg /n *.png
Reviewing the Recovered Files
Once the scan completes, the tool will automatically create a recovery folder on your destination drive, typically named Recovery_[Date]_[Time].
Navigate to this folder using File Explorer to review the recovered files. If you used Extensive mode, the files might not retain their original names, so you may need to open them individually to identify their contents.
Best Practices to Prevent Permanent Data Loss
- Stop using the drive immediately: The moment you realise a file is missing, stop saving new files, downloading software, or browsing heavily on that drive to prevent the deleted data from being overwritten.
- Implement automatic backups: Relying on file recovery tools should be a last resort. Configure Windows Backup or OneDrive to automatically sync your Desktop, Documents, and Pictures folders to the cloud.