Understanding and Using Windows Shadow Copy: Everything You Need to Know

Understanding and Using Windows Shadow Copy: Everything You Need to Know blog banner image

Shadow copies are a practical solution for quickly recovering previous versions of files without significant downtime. They are particularly beneficial in enterprise IT environments, where data integrity and availability are crucial, and downtime for backups can be disruptive.

Windows Shadow Copy is a simple tool you can use to set up, manage, and configure your shadow copies using Volume Shadow Copy Service (VSS). This blog explains how to use this feature, manage your storage space, and execute advanced configurations.

Shadow copies and terminology explained

Let’s look at some of the basic terminology and concepts you’ll want to understand before jumping into Windows Shadow Copy.

What is a shadow copy?

A shadow copy is a snapshot of your data at a specific moment in time. Imagine you’re working on a document and you want to revert to a version from two hours ago because of a mistake or a change in direction. Creating a shadow copy enables you to do that without losing any work. It’s a safety net that captures and preserves the state of your files at various points so you can access previous versions easily.

What is the difference between shadow copy and backup?

While both shadow copies and backups aim to protect your data, they operate differently. A backup is a comprehensive archive of your data stored in a separate location, which can be used for recovery in case of significant data loss.

Shadow copies, on the other hand, allow for quick recovery of files to earlier versions without the need to restore from a backup. Essentially, backups are your long-term safety net, while shadow copies provide short-term, convenient snapshots.

What is VSS?

Volume Shadow Copy Service (VSS) is a technology that Windows uses to create shadow copies. It’s what allows your system to take these snapshots of your files or even entire volumes of data without interrupting your work. VSS is especially useful in environments where your files are constantly being accessed and changed, as it ensures that backups can be performed without closing files or taking systems offline.

Setting up Windows Shadow Copy

Windows Shadow Copy is a feature included in the Microsoft Windows operating system that allows you to easily create shadow copies even while your files are in use — enabling quick rollbacks to earlier states without the downtime associated with traditional backups. The service monitors changes to files on a volume and automatically creates copies of these files in a shadow copy storage area.

There are a few steps you must follow to enable shadow copies and get Windows Shadow Copy up and running on your device:

  1. Right-click on ”This PC” on your desktop or in File Explorer, then select ”Properties.”
  2. Click on ”System protection” on the left sidebar.
  3. In the “System Properties” window, under the “System Protection” tab, you’ll see a list of drives. Select the drive where Windows is installed (usually C:) and click “Configure.”
  4. In the next window, select ”Turn on system protection.”
  5. Adjust the “Max Usage” slider to allocate disk space for shadow copies.
  6. Click ”Apply” then ”OK.”

You’ve now enabled Shadow Copy, setting up a crucial safeguard for your data.

Disabling Shadow Copy in Windows

If you need to turn off Shadow Copy, perhaps to free up disk space temporarily, follow these steps:

  1. Right-click on ”This PC”, choose ”Properties”, then “System protection.”
  2. Select the ‘System Protection’ tab, choose your Windows drive and click “Configure.”
  3. Select ”Disable system protection.”
  4. Click ”Apply” and then “OK.”

Remember, this action stops the creation of new shadow copies and might delete existing ones, so use it judiciously.

Managing Windows Shadow Copy storage space

Given the convenience of shadow copies, it’s easy to overlook the disk space they consume. Over time, as snapshots accumulate, they can significantly eat into your storage capacity, which might be a concern, especially on drives with limited space.

Here’s how to manage it without compromising overall system performance:

  1. Right-click “This PC,” select “Properties” then “System protection”.
  2. Under the “System Protection” tab, choose your drive and click “Configure.”
  3. Use the slider under “Max Usage” to set a limit on the space shadow copies can use.
  4. After adjusting, click “Apply” and “OK”.

Advanced Windows Shadow Copy options

Beyond the basics, Windows Shadow Copy offers a suite of advanced options for those needing finer control over how snapshots are managed. Here’s how to access and adjust them:

Adjusting advanced options via Group Policy Editor

  1. Press Windows + R, type gpedit.msc, and press “Enter.”
  2. Navigate to Computer Configuration > Administrative Templates > System > System Restore.
  3. Adjust settings like the creation frequency and storage locations of shadow copies.
  4. Make your changes, then apply them.

Adjusting advanced options via Command Line tools

  1. Open Command Prompt as an administrator.
  2. Use vssadmin to adjust shadow copy settings directly.
  3. For example, vssadmin list shadows shows existing shadow copies, while vssadmin resize shadowstorage can change storage allocation.

Advanced configurations and troubleshooting

Even with a well-configured Shadow Copy setup, issues can arise. For troubleshooting or further customizations, these steps can help:

Use Event Viewer

The Event Viewer provides logs that can help identify and resolve issues with Shadow Copy, offering insights into failed snapshot attempts and other anomalies.

  1. Press Windows + R, type eventvwr.msc and press “Enter.”
  2. Look under Windows Logs > Application for VSS or System Restore-related messages that can guide troubleshooting.

Leverage vssadmin for diagnostics

This tool can diagnose problems, offering commands to list, create and delete snapshots, giving you hands-on control over troubleshooting processes.

  1. Open Command Prompt as an administrator.
  2. Commands like vssadmin list writers and vssadmin list providers can help identify and solve issues with shadow copies.

Restoring data from a Windows shadow copy

Restoring your data using Windows Shadow Copy is straightforward and allows you to retrieve previous versions of files or folders directly from within Windows. Here’s how you can do it:

  1. Navigate to the file or folder where you want to restore a previous version.
  2. Right-click on the file or folder and select “Properties” from the context menu. This will open the Properties dialog for the selected item.
  3. In the Properties dialog, look for a tab labeled “Previous Versions.” Click on this tab to view a list of available shadow copies and previous versions of the file or folder.
  4. The “Previous Versions” tab will display a list of available versions, along with the dates and times they were created.
  5. Browse through this list and identify the version you wish to restore. If you’re not sure which version is the right one, you can select a version and click “Open” to view its contents without affecting your current version.

Once you’ve identified the correct version, you have a couple of options:

Restore: To replace the current version of the file or folder with the selected previous version, click “Restore.” Be cautious with this option, as it will overwrite the current version.

Copy: If you prefer not to overwrite the current version, you can click “Copy” to copy the selected version to another location on your system. You can then access both versions of the file or folder.

After selecting “Restore” or “Copy,” follow any additional prompts to complete the process. If you restored the item, check to ensure that the previous version now exists where the current version used to be. If you chose to copy your previous version, navigate to the location where you saved the copy to access it.

Monitoring shadow copies

Did you know you can create automated alerts that will monitor your shadow copies or Volume Shadow Copy Service (VSS)? This can help you mitigate the potential risks associated with insufficient backup points. Just follow this PowerShell script to learn how.

Next Steps

Building an efficient and effective IT team requires a centralized solution that acts as your core service deliver tool. NinjaOne enables IT teams to monitor, manage, secure, and support all their devices, wherever they are, without the need for complex on-premises infrastructure.

Learn more about Ninja Endpoint Management, check out a live tour, or start your free trial of the NinjaOne platform.

You might also like

Ready to become an IT Ninja?

Learn how NinjaOne can help you simplify IT operations.

×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).