Recover lost files on Windows 10 (2024)

Skip to main content

Recover lost files on Windows 10 (1) Microsoft

Support

Sign in with Microsoft

Sign in or create an account.

Hello,

Select a different account.

You have multiple accounts

Choose the account you want to sign in with.

Windows Apps Insider Preview More...Less

If you can’t locate a lost file from your backup, then you can use Windows File Recovery, which is a command line app available from the Microsoft Store. Use this app to try to recover lost files that have been deleted from your local storage device (including internal drives, external drives, and USB devices) and can’t be restored from the Recycle Bin. Recovery on cloud storage and network file shares is not supported.

Note This app requires Windows 10 build 19041 or later (See which version of Windows 10 you have).

Important:If you want to increase your chances of recovering a file, minimize or avoid using your computer. In the Windows file system, the space used by a deleted file is marked as free space, which means the file data can still exist and be recovered. But any use of your computer can create files, which may over-write this free space at any time.

Windows File Recovery - Winter 2020 release

  1. If necessary, download and launch the app from Microsoft Store.

  2. Press the Windows key, enter Windows File Recovery in the search box, and then select Windows File Recovery.

  3. When you are prompted to allow the app to make changes to your device, select Yes.

  4. In theCommand Prompt window, enterthe command in the following format:

    winfrsource-drive: destination-drive:[/mode][/switches]

  5. There are 2 basic modes you can use to recover files: Regular and Extensive.

    Regular mode examples

    Recover your Documents folder from your C: drive to the recovery folder on an E: drive.Don’tforget the backslash (\) at the end of the folder.

    WinfrC: E: /regular /n \Users\<username>\Documents\

    Recover PDF and Word files from your C: drive to the recovery folder on an E: drive.

    WinfrC: E: /regular /n*.pdf /n *.docx

    Extensive mode examples

    Recover any file with the string "invoice" in the filename by using wildcard characters.

    WinfrE:C: /extensive/n *invoice*

    Recover jpeg andpng photos from your Pictures folder to the recovery folder on an E: drive.

    WinfrC: E:/extensive/n \Users\<username>\Pictures\*.JPEG/n\Users\<username>\Pictures\*.PNG

    The source and destination drives must be different. When recovering from the operating system drive (often C: ), use the/n <filter> switchesto specify the user files or folder.
    Microsoft automatically creates a recovery folder for you called, Recovery_<date and time> on the destination drive.

  6. When you are prompted for confirmation to continue, enterYto start the recovery operation.Depending on the size of your source drive, this may take a while.To stop the recovery process, pressCtrl + C.

The following information can help you decide which file system you have and which mode to use.

File systems

File system

Examples

FAT andexFAT

SD cards, flash or USB drives (< 4GB)

NTFS

Computers (HDD, SSD), external hard drives,flashor USB drives (> 4GB)

There are several file systems supported by Windows that vary depending on the storage device or operating system.Recovering files from non-NTFS file systems is only supportedby extensivemode.To see which file system you have, right click a drive in File Explorer and selectProperties.

Deciding which mode to use

Use the following table to help you decide which mode to use. If youare not sure, start withRegular mode.

File system

Circ*mstances

Recommended mode

NTFS

Deleted recently

Regular

NTFS

Deleted a while ago

Extensive

NTFS

After formatting a disk

Extensive

NTFS

A corrupted disk

Extensive

FATandexFAT

Any

Extensive

General syntax

The following table summarizes what each advancedswitch is used for.

Parameter / switch

Description

Supported mode(s)

Source-drive:

Specifies the storage device where the files were lost. Must be different from the destination-drive.

All

Destination-drive:

Specifies the storage device and folder on which to put the recovered files. Must be different from the source-drive.

All

/regular

Regular mode, the standard recovery option for non-corrupted NTFS drives

Regular

/extensive

Extensive mode, a thorough recovery option suitable for all file systems

Extensive

/n<filter>

Scans for a specific file by using a file name, file path,file type, orwildcards. For example:

  • File name: /n myfile.docx

  • File path: /n /users/<username>/Documents/

  • Wildcard: /nmyfile.*

  • /n *.docx

  • /n *<string>*

All

/?

Summary of syntax and switches for general users.

All

/!

Summary of syntax and switches for advanced users.

All

Advanced syntax

The following table summarizes what each advancedswitch is used for.

Switch

Description

Supported modes

/ntfs

NTFS mode, a fast recoveryoptionfor healthy NTFS drives using themasterfiletable

NTFS

/segment

Segment mode, recoveryoptionfor NTFS drives using file recordsegments

Segment

/signature

Signature mode, recovery option for all file system types using fileheaders

Signature

/y:<type(s)>

Recover specific extension groups, commaseparated

Signature

/#

Signature mode extension groups and supportedfile types.

Signature

/p:<folder>

Saves a log file of the recovery operation in a different location than the default location on the recovery drive (for example, D:\logfile).

All

/a

Overrides user prompts, which is useful in a script file.

All

/u

Recovers undeleted files, for example, from the Recycle Bin.

NTFS
Segment

/k

Recovers system files.

NTFS
Segment​​​​​

/o:<a|n|b>

Specifies whether to always (a), never (n), orkeep both always(b) when choosing whether to overwrite a file. The default action is to prompt to overwrite.

NTFS
Segment​​​​​

/g

Recovers files without primary data streams.

NTFS
Segment

/e

To keep your results manageable and focus on user files, some file types are filtered by default, but this switch removes that filter.For a complete list of these file types, see the information after this table.

NTFS
Segment

/e:<extension>

Specifies which file types are filtered. For a complete list of these file types, see the information after this table.

NTFS
Segment

/s:<sectors>

Specifies the number of sectors on the source device. To find sector information, use fsutil.

Segment
Signature

/b:<bytes>

Specifies the cluster size (allocation unit) on the source device.

Segment
Signature

File extension filter list

The following file types are filtered from results by default. Use the /e switch to disable this filter or the /e:<extension> filter to specify file types not to filter.

_, adm, admx, appx, appx, ascx, asm, aspx, aux, ax, bin, browser, c, cab, cat cdf-ms, catalogItem, cdxm, cmake, cmd, coffee, config, cp, cpp, cs, cshtm, css, cur, dat, dll, et, evtx, exe, fon, gpd, h, hbakedcurve, htm, htm, ico, id, ildl, ilpdb, iltoc, iltocpdb, in, inf, inf_loc, ini, js, json, lib, lnk, log, man, manifest, map, metadata, mf, mof, msc, msi, mui, mui, mum, mun, nls, npmignore, nupkg, nuspec, obj, p7s, p7x, pak, pckdep, pdb, pf, pkgdef, plist, pnf, pp, pri, props, ps1, ps1xm, psd1, psm1, py, resjson, resw, resx, rl, rs, sha512, snippet, sq, sys, t4, targets, th, tlb, tmSnippet, toc, ts, tt, ttf, vb, vbhtm, vbs, vsdir, vsix, vsixlangpack, vsixmanifest, vstdir, vstemplate, vstman, winmd, xam, xbf, xm, xrm-ms, xs, xsd, ym

Can you give some tips to help me use the correct syntax?

  • Always use drive letters in the source and destination path,don’tforget the colon (:) after the drive letter, and make sure there is a space between the source and destination.

  • When you specify just a folder name, such as /n \Myfolder\, add a backslash (\) at the end of it.

  • If a file or folder name has spaces, surround it with quotes. For example:

winfrC: E: /regular /n "\Users\<username>\Documents\Quarterly Statement.docx"

What does <username> mean in the command examples?

In the File Explorer address bar, enter C:\users to see a list of potential users on your computer. There may be several users on your computer, including you, the administrator, and the default account. When you see <username> in a file path, it is a placeholder for the current username on your computer.

Why am I getting this message: "Source and Destination cannot refer to the same physical partition?"

The source and destinationdriveor partition path should not be the same. If you only have one drive, use a USB or external hard drive as your destination path. Don’t create a partition after losing data, because this reduces the chance of a successful recovery.

Why does the recovery operation take so long?

​Depending on the size of the disk, it may take some time to recover the file, especially ifyou are using Extensivemode.

Why are additional files recovered from my operating system drive?

Behind the scenes, Windows is constantly creating and deleting files. By default, Windows File Recovery filters out these files, but some slip through.To prevent this, use the /n <filter>as per examples in this article.

What is the $Recycle.Binfolder?

ForNTFSand segment modes, you may also see lost files recovered from the Recycle Bin (files either in the recycle bin or that were permanently deleted) with the name $files.xxxand stored in a folder called $RECYCLE.BIN.

What happens if the destination drive is full?

If you see the following message: "Destination disk is full, please free up space before resuming: (R)esume, (S)kip file, or (A)bort," free up drive space on the destination drive, and then choose one of the options.

I was not able to recover the file, now what?

If you usedRegular mode, try again inextensivemode if the file type is supported.It'spossible that the free space was overwritten, especially on asolid-statedrive (SSD). If you need help, contact your administrator.

Windows File Recovery - Summer 2020 release

  1. If necessary, download and launch the app from Microsoft Store.

  2. Press the Windows key, enter Windows File Recoveryin the search box, and then select Windows File Recovery.

  3. When you are prompted to allow the app to make changes to your device, select Yes.

  4. In the Command Prompt window, enter the command in the following format:

    winfr source-drive: destination-drive: [/switches]

    The source and destination drives must be different. When recovering from the operating system drive (often C: ), use the /n <filter> and /y:<type<(s)> switches to specify the user files or folder.

    Microsoft automatically creates a recovery folder for you calledRecovery_<date and time> on the destination drive.

    There are three modes you can use to recover files: Default, Segment, and Signature.

    Default mode examples

    Recover a specific file from your C: drive to the recovery folder on an E: drive.

    winfr C: E: /n \Users\<username>\Documents\QuarterlyStatement.docx


    Recover jpeg and pngphotos from your Pictures folder to the recovery folder on an E: drive.

    winfr C: E: /n \Users\<username>\Pictures\*.JPEG /n \Users\<username>\Pictures\*.PNG


    Recover your Documents folder from your C: drive to the recovery folder on an E: drive.

    winfr C: E: /n \Users\<username>\Documents\

    Don’t forget the backslash (\) at the end of the folder.

    Segment mode examples (/r)

    Recover PDF and Word files from your C: drive to the recovery folder on an E: drive.

    winfr C: E: /r /n *.pdf /n *.docx


    Recover any file with the string "invoice" in the filename by using wildcard characters.

    winfr C: E: /r /n *invoice*


    Signature mode examples (/x)

    When using signature mode, it's helpful to first see the supported extension groups and corresponding file types.

    winfr /#


    Recover JPEG (jpg, jpeg, jpe, jif, jfif, jfi) and PNG photos from your C: drive tothe recovery folder on an E: drive.

    winfr C: E: /x /y:JPEG,PNG


    Recover ZIP files (zip, docx, xlsx, ptpx, and so on) from your C: drive to the recovery folder on an E: drive.

    winfr C: E:\RecoveryTest /x /y:ZIP

  5. When you are prompted for confirmation to continue, enter Y to start the recovery operation.

    Depending on the size of your source drive, this may take a while.

    To stop the recovery process, press Ctrl+C.

The following information can help you decide which file system you have and which mode to use.

File systems

There are several file systems supported by Windows that vary depending on the storage device or operating system. Recovering files from non-NTFS file systems is only supported in signature mode. To see which file system you have, right click a drive in File Explorer and select Properties.

File system

Examples

FAT and exFAT

SD cards, flash or USB drives (< 4GB)

ReFS

Windows Server and Windows Pro for Workstations

NTFS

Computers (HDD, SSD), external hard drives, flash or USB drives (> 4GB)

Deciding which mode to use

Use the following table to help you decide which mode to use. If you're not sure, start with the default mode.

File system

Circ*mstances

Recommended mode

NTFS

Deleted recently

Default

NTFS

Deleted a while ago

Segment, followed by Signature

NTFS

After formatting a disk

Segment, followed by Signature

NTFS

A corrupted disk

Segment, followed by Signature

FAT, exFAT

Recovery file type is supported (see following table)

Signature

Signature mode extension groups and file types

The following table summarizes the extension groups and the supported file types for each group when you use the /y:<type(s)> switch

Extension group

File type

ASF

wma, wmv, asf

JPEG

jpg, jpeg, jpe, jif, jfif, jfi

MP3

mp3

MPEG

mpeg, mp4, mpg, m4a, m4v, m4b, m4r, mov, 3gp, qt

PDF

pdf

PNG

png

ZIP

zip, docx, xlsx, pptx, odt, ods, odp, odg, odi, odf, odc, odm, ott, otg, otp, ots, otc, oti, otf, oth

General syntax

The following tablesummarizes what each basic command line parameter and switch is used for.

Parameter or switch

Description

Supported modes

Source-drive:

Specifies the storage device where the files were lost. Must be different from the destination-drive.

All

Destination-drive:

Specifies the storage device and folder on which to put the recovered files.Must be different from the source-drive.

All

/r

Uses segment mode, which examines File Record Segments (FRS).

Segment

/n <filter>

Scans for a specific file by using a file name, file path, or wildcards. For example:

  • File name: /n myfile.docx

  • File path: /n /users/<username>/Documents/

  • Wildcard: /n myfile.*
    /n *.docx
    /n *<string>*

Default
Segment

/x

Uses signature mode, which examines file types and works on all file systems.

Signature

/y:<type(s)>

Scans for files with specific file types. Separate multiple entries by using commas. For a list of extension groups and corresponding file types, see the table, "Signature mode extension groups and file types" in the section, "About modes and file systems".

Signature

/#

Shows signature mode extension groups and corresponding file types in each group.

All

/?

Shows a quick summary of syntax and switches for general users.

All

/!

Shows a quick summary of syntax and switches for advanced users.

All

Advanced syntax

The following table summarizes what each advancedswitch is used for.

Switch

Description

Supported modes

/p:<folder>

Saves a log file of the recovery operation in a different location than the default location on the recovery drive (for example, D:\logfile).

All

/a

Overrides user prompts, which is useful in a script file.

All

/u

Recovers undeleted files, for example, from the Recycle Bin.

Default
Segment

/k

Recovers system files.

Default
Segment​​​​​

/o:<a|n|b>

Specifies whether to always (a), never (n), orkeep both always(b) when choosing whether to overwrite a file. The default action is to prompt to overwrite.

Default
Segment​​​​​

/g

Recovers files without primary data streams.

Default
Segment

/e

To keep your results manageable and focus on user files, some file types are filtered by default, but this switch removes that filter.For a complete list of these file types, see the information after this table.

Default
Segment

/e:<extension>

Specifies which file types are filtered. For a complete list of these file types, see the information after this table.

Default
Segment

/s:<sectors>

Specifies the number of sectors on the source device. To find sector information, use fsutil.

Segment
Signature

/b:<bytes>

Specifies the cluster size (allocation unit) on the source device.

Segment
Signature

/f:>sector>

First sector to scan on the source device.

Segment
Signature

Can you give some tips to help me use correct syntax?

Here are some suggestions:

  • Always use drive letters in the source and destination path, don’t forget the colon (:) after the drive letter, and make sure there is a space between the source and destination.

  • If a switch has a colon, such as /y:, don’t add a space between the colon and the rest of the value.

  • When you specify just a folder name, such as /n \Myfolder\, add a backslash (\) at the end of it.

  • If a file or folder name has spaces, surround it with quotes. For example:

    winfr C: E: /n "\Users\<username>\Documents\Quarterly Statement.docx"
  • To stop the recovery process, press Ctrl+C.

What does <username> mean in the command examples?

In the File Explorer address bar, enter C:\users to see a list of potential users on your computer. There may be several users on your computer, including you, the administrator, and the default account. When you see <username> in a file path, it is a placeholder for the current username on your computer.

Why am I getting this message: "Source and Destination cannot refer to the same physical partition?"

The source and destination drive or partition path should not be the same. If you only have one drive, use a USB or external hard drive as your destination path. Don’t create a partition after losing data, because this reduces the chance of a successful recovery.

Why does the recovery operation take so long?

​Depending on the size of the disk, it may take some time to recover the file, especially if you are using signature mode.

Why are additional files recovered from my operating system drive?

Behind the scenes, Windows is constantly creating and deleting files. By default, Windows File Recovery filters out these files, but some slip through. To prevent this, use the /n <filter> switch in default and segment modes and the /y:<type(s)> switch in signature mode.

What is the $Recycle.Bin folder?

For default and segment modes, you may also see lost files recovered from the Recycle Bin (files either in the recycle bin or that were permanently deleted) with the name $files.xxx and stored in a folder called $RECYCLE.BIN.

What happens if the destination drive is full?

If you see the following message:"Destination disk is full, please free up space before resuming: (R)esume, (S)kip file, or (A)bort",Free up drive space on the destination drive, and then choose one of the options.

I was not able to recover the file, now what?

If you used default or segment mode, try again in signature mode if the file type is supported. It's possible that the free space was over-written, especially on a solid state drive (SSD). If you need help, contact your administrator.

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Thank you for your feedback!

×

Recover lost files on Windows 10 (2024)

FAQs

Can you recover lost files on Windows 10? ›

If you can't locate a lost file from your backup, then you can use Windows File Recovery, which is a command line app available from the Microsoft Store.

How do I repair missing files in Windows 10? ›

Use System File Checker (SFC):

Right-click on the Command Prompt app and Run as Administrator. In the Command Prompt, type the command sfc /scannow and press Enter. The system will commence the verification phase to identify the corrupt/missing files and resolve the issue for you.

Why did my files suddenly disappear in Windows 10? ›

The fast startup is one of the reasons that cause your files to be missing in Windows 10. To tackle the "file disappeared issue", we suggest closing Fast Startup. Check the steps and see if it works: Step 1.

How to recover disappeared files? ›

Right-click the file or folder, and then select Restore previous versions. You'll see a list of available previous versions of the file or folder. The list will include files saved on a backup (if you're using Windows Backup to back up your files) as well as restore points, if both types are available.

Is it possible to recover permanently deleted files? ›

Can files be recovered once deleted? Yes, files can be recovered after being deleted. The level of difficulty depends on how long ago the file was deleted, however, and you may need to use specialized tools if trying to recover data that has been corrupted.

How to recover deleted files Windows 10 without backup? ›

Check the Recycle Bin: First, check the Recycle Bin to see if your accidentally deleted files are still there. If so, simply right-click on the file and select "Restore" to recover them.

How to restore system files in Windows 10? ›

In the Control Panel search box, type recovery. Select Recovery > Open System Restore. In the Restore system files and settings box, select Next.

How do I fix missing files? ›

Windows System File Checker (SFC) is a utility that scans and verifies the integrity of all protected system files and replaces any corrupted or missing ones with a cached copy. To use SFC, you need to open an elevated command prompt as an administrator. Then, type sfc /scannow and press Enter.

How to repair the missing or corrupted Windows system files? ›

In the command prompt window, type SFC /scannow and press Enter . The system file checker utility checks the integrity of Windows system files and repairs them if required. After the process is complete, reboot the computer.

How do I get my files back on my desktop? ›

Open the Recycle Bin from either the desktop or the Start menu. Locate the missing file you want to restore. Highlight the file you need and click "Restore." If you require a bulk restore, you can select multiple files and click "Restore the selected items" in the top left.

How to retrieve missing files from a hard disk? ›

What to Do if Files Disappeared from Hard Drive
  1. Method 1: Display hidden files. ...
  2. Method 2: Check hard drive recycle bin. ...
  3. Method 3: CHKDSK. ...
  4. Method 4: Change Registry Value. ...
  5. Method 5: Check One Drive. ...
  6. Method 6: Recover files with data recovery software. ...
  7. Fix #1: Check the cable and port. ...
  8. Fix #2: Use devices troubleshooter.

Why did I lose all my files on my computer? ›

Check hard drive for errors. Your computer hard drives may have malfunctioned, resulting in all files disappearing if your log-in account is correct. You can run the Windows disk check tool to scan and repair hard drive for file system errors and recover corrupted hard drive.

How to recover lost files on Windows 10? ›

If you accidentally deleted a file on Windows 10, don't panic. There are ways to recover it. First, check the recycle bin on your desktop. If the file is there, right-click and select "Restore." If not, you can use the File History feature.

Where have all my files gone? ›

In the search box on the taskbar, type File Explorer Options, then select the View tab. Under Hidden files and folders, select Show hidden files, folders, and drives option.

How to recover files lost by Ctrl+Z in Windows 10? ›

Let's take a look at a few:
  1. Option 1: Use Ctrl +Y to recover files lost by Ctrl + Z.
  2. Option 2: Undo Delete to recover files lost files.
  3. Option 3: Restore From Recycle Bin.
  4. Option 4: Use Manual Search.
  5. Option A: Disk Drill.
  6. Option B: PhotoRec.
  7. Option C: R-Studio.
Feb 19, 2024

How do I recover files from file history in Windows 10? ›

Type and search [File History]① in the Windows search bar, then click [Open]②. Select [Restore personal files]③. You can select a file/folder, multiple files/folders, or all folders from the backup drive to restore it④.

How lost files can be recovered in Windows operating system? ›

How to restore files from the Recycle Bin:
  1. Open the Recycle Bin from either the desktop or the Start menu.
  2. Locate the missing file you want to restore.
  3. Highlight the file you need and click "Restore." If you require a bulk restore, you can select multiple files and click "Restore the selected items" in the top left.

Where do deleted files go in Windows 10? ›

Deleted files are stored in the Windows Recycle Bin tool unless they're deleted using the “Shift” + “Delete” command. This permanently erases the files from your computer and makes them inaccessible through Windows File Explorer, though they will continue to exist on the storage device until they're overwritten.

How to recover permanently deleted files in Windows 10 without software? ›

How to Recover Permanently Deleted Files in Windows 10 Without Software - from Backups
  1. Connect your backup storage media to your Windows PC.
  2. Press Windows + I keys and navigate to "Settings".
  3. Choose "Update & Security" > "Backup".
  4. Click "Go to Backup & Restore (Windows 7)".
  5. Click "Restore My Files".
May 9, 2024

Top Articles
Retail therapy: if money buys happiness, what should we purchase?
Mistplay | Play and earn awesome rewards
Why Are Fuel Leaks A Problem Aceable
Access-A-Ride – ACCESS NYC
Unitedhealthcare Hwp
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Nyuonsite
Apnetv.con
Deshret's Spirit
Waive Upgrade Fee
Hssn Broadcasts
Oscar Nominated Brings Winning Profile to the Kentucky Turf Cup
Mephisto Summoners War
House Party 2023 Showtimes Near Marcus North Shore Cinema
Lax Arrivals Volaris
Morgan And Nay Funeral Home Obituaries
No Hard Feelings Showtimes Near Cinemark At Harlingen
Les Rainwater Auto Sales
Willam Belli's Husband
Vipleaguenba
Accuweather Mold Count
Jbf Wichita Falls
Ge-Tracker Bond
Ein Blutbad wie kein anderes: Evil Dead Rise ist der Horrorfilm des Jahres
Pjs Obits
Hesburgh Library Catalog
Free T33N Leaks
Ancestors The Humankind Odyssey Wikia
Where Can I Cash A Huntington National Bank Check
Petsmart Distribution Center Jobs
Teenage Jobs Hiring Immediately
Great Clips On Alameda
How Much Is Mink V3
To Give A Guarantee Promise Figgerits
The Vélodrome d'Hiver (Vél d'Hiv) Roundup
Today's Gas Price At Buc-Ee's
Dmitri Wartranslated
Panorama Charter Portal
Simnet Jwu
Gopher Hockey Forum
Sams Gas Price Sanford Fl
Dwc Qme Database
Divinity: Original Sin II - How to Use the Conjurer Class
Levi Ackerman Tattoo Ideas
Satucket Lectionary
Advance Auto.parts Near Me
The Great Brian Last
Graduation Requirements
Mlb Hitting Streak Record Holder Crossword Clue
Sitka Alaska Craigslist
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 6394

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.