Restore Deleted Files Using Shadow Copy
In this article
Yes, you can restore deleted files using Shadow Copy (Volume Shadow Copy Service, or VSS) on Windows, provided the file was on an NTFS drive and a restore point or shadow copy exists from before the deletion. This article explains how to access shadow copies through the Previous Versions tab, how to recover files from them, and what to do when that tab is empty.
What Is Shadow Copy?
Shadow Copy is a Windows technology that creates point-in-time snapshots of files and folders on NTFS volumes. These snapshots are managed by the Volume Shadow Copy Service and are typically created automatically by System Restore, Windows Backup, or third-party backup tools. The snapshots store the state of files as they existed at a specific moment, allowing you to retrieve older versions or recover deleted items without a traditional backup tape or cloud service.
Shadow copies are not full backups. They are incremental snapshots that only store changes since the last snapshot, which makes them space-efficient. However, they are not permanent—Windows deletes older snapshots when the allocated disk space is full or after a certain age, depending on your system settings.
How to Check If a Shadow Copy Exists
Before attempting a recovery, you need to verify that a shadow copy is available for the drive where the file was deleted. Here is how to check:
- Open File Explorer and right-click the drive (e.g., C:) where the file was located.
- Select Properties and go to the Previous Versions tab.
- If any shadow copies exist, you will see a list of folders with dates and times. If the list is empty, no shadow copies are available for that drive.
You can also use the command line to list shadow copies:
- Open Command Prompt as Administrator.
- Type
vssadmin list shadowsand press Enter. - Look for lines that say
Shadow Copy Volume:and note the creation time and the volume it belongs to.
If you see shadow copies, you can proceed. If not, you will need to use a third-party file recovery tool or restore from a backup.
Restoring Files via the Previous Versions Tab
The most straightforward method is through the built-in Previous Versions interface. Follow these steps:
- Navigate to the folder where the deleted file used to reside.
- Right-click the folder (or the drive) and select Properties.
- Go to the Previous Versions tab.
- Select the version that is dated before the file was deleted.
- Click Restore to overwrite the current folder with the old version, or click Copy to place the old version in a different location.
If you are restoring a single file, you can also open the previous version folder, locate the file, and copy it out manually. This is safer if you do not want to overwrite newer changes.
Restoring Files from a Shadow Copy Using Command Line
If the Previous Versions tab is not available or you need more control, you can mount the shadow copy as a drive letter and copy files from it. Here is how:
- Open Command Prompt as Administrator.
- Run
vssadmin list shadowsto find the shadow copy ID and the volume it belongs to. - Run
mklink /d C:\shadowlink \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\(replace the shadow copy number with the one you want). - Now you can access the snapshot as a folder at
C:\shadowlinkand copy files normally.
This method is useful when the Previous Versions tab is missing, which can happen on some Windows editions or when the drive is not the system drive.
Common Problems and Limitations
Several issues can prevent shadow copy recovery:
- No shadow copies exist: If System Restore is disabled or the drive is not protected, no snapshots will be created.
- Shadow copies overwritten: If the system has been running for a long time, older snapshots may have been deleted to make room for newer ones.
- File was on a non-NTFS drive: Shadow copies only work on NTFS volumes. FAT32 and exFAT drives do not support them.
- File was on a network share: Shadow copies are local to the server. You may be able to access them via the Previous Versions tab on the server, but not from a client machine.
- File was deleted permanently: If you used Shift+Delete or emptied the Recycle Bin, the file is still recoverable via shadow copy if a snapshot exists, but if the snapshot was taken after the deletion, it will not contain the file.
Another common misconception is that shadow copies are the same as the Recycle Bin. They are not. The Recycle Bin holds deleted files until you empty it, while shadow copies are snapshots of entire volumes at a point in time. If you emptied the Recycle Bin, shadow copies may still have the file if the snapshot predates the deletion.
How to Enable and Configure Shadow Copies
If you want to ensure shadow copies are available in the future, you can configure them manually:
- Open System Properties (right-click This PC > Properties > System Protection).
- Select the drive and click Configure.
- Enable Turn on system protection and set a maximum usage size.
- Click Create to make a manual restore point immediately.
Note that System Protection creates shadow copies automatically before major events like driver installations or Windows updates, but not on a daily schedule. For regular snapshots, you can use the wmic command or a scheduled task to create shadow copies, but that requires scripting and is beyond the scope of this article.
Alternatives to Shadow Copy
If shadow copies are not available, you have other options:
- File History: A Windows feature that backs up files in specific folders to an external drive or network location. It is more reliable than shadow copies for personal files.
- Recycle Bin: Check it first. If the file is there, right-click and select Restore.
- Third-party recovery tools: Programs like Recuva or TestDisk can scan the disk for traces of deleted files. They work even if no shadow copy exists, but success is not guaranteed, especially if the disk has been written to since deletion.
- Cloud backup: If you use OneDrive, Google Drive, or similar, check the online trash or version history.
Frequently Asked Questions
Can I recover a file that was deleted months ago?
Possibly, if a shadow copy exists from that time. However, shadow copies are typically retained for only a few weeks unless you have increased the storage limit. The older the deletion, the less likely a shadow copy will be available.
Does Shadow Copy work on external drives?
Yes, if the external drive is formatted as NTFS and System Protection is enabled for it. However, Windows does not enable protection for external drives by default, so you must turn it on manually in System Properties.
What is the difference between Shadow Copy and System Restore?
System Restore uses shadow copies to restore Windows system files and settings. Shadow Copy itself is the underlying technology that creates the snapshots. System Restore is a user-facing feature that leverages shadow copies, while Shadow Copy can also be used for file recovery.
Why is the Previous Versions tab empty even though I have restore points?
Restore points are not the same as file history. System Restore points do not always include user files, especially if the drive is not protected for system protection. To have file versions available, you need to enable System Protection for the drive or use File History.
Can I recover a file from a shadow copy if I have already written new data to the disk?
Yes, because the shadow copy is a separate snapshot that is not affected by new writes to the current volume. As long as the shadow copy still exists, you can recover the file regardless of what you have done since.