Someone drags the wrong file over this quarter's budget spreadsheet, saves, closes the window, and freezes. The undo key will not help now. Then a colleague mentions the unglamorous feature that has been running quietly for years: right click the file, choose Restore previous versions, and pick Tuesday from a short list of timestamps. The old spreadsheet comes back, intact. That list of dates is not an Explorer party trick. It is the visible tip of Volume Shadow Copy Service, a coordination service that has kept consistent point-in-time views of Windows volumes since the Server 2003 era. Understanding how it works explains both why the feature is so useful and why it sometimes hands you an empty list.
The Machinery VSS Runs When a Snapshot Is Requested
VSS itself never stores your data. It is a broker that lines up three parties with very different jobs. The requestor is the program that wants a snapshot: a backup application, the System Restore scheduler, or an administrator at a command prompt. Writers are small components inside applications and services that know exactly how to put their own data into a clean state. Providers are the engines that actually create and maintain the snapshot on disk. A requestor asks, VSS gathers the writers, the provider takes the picture, and everyone gets a strictly bounded few seconds to cooperate.
The result is a read-only, frozen view of an NTFS volume as it existed at one instant. Creating it does not pause the machine, dismount anything, or copy a terabyte of data. The whole operation typically completes in seconds, most of which is spent politely asking writers to flush their buffers. That speed is possible because the snapshot is not a clone at all. It is a promise about old data, backed by an accounting trick that only pays for storage when the live volume actually changes.
Copy on Write and the Anatomy of a Shadow
At the instant of the snapshot the live volume and the snapshot are the same bytes; from that moment they diverge, the live volume becoming the "new" state while the snapshot preserves the "old". VSS achieves this with copy on write, and the rule is simple: before any block about to be overwritten departs from the snapshot, its original contents are saved to the shadow storage area first.
In practice the sequence runs through a filter layer in the storage stack, and three things happen before a modified sector is allowed to land:
- The filter checks whether the target block has already been saved for this snapshot;
- If it has not, the original contents are read from the volume and written into the diff area;
- Only then is the incoming data allowed to overwrite the live copy, and the snapshot keeps its private record of the old bytes.
Reading the snapshot works the same way in reverse. For any block, the snapshot layer checks whether a saved original exists in the diff area. If yes, the old data is served from there. If no, the block is read straight from the live volume, because that block has not changed since the snapshot was taken and the live copy still holds the old bytes. Every read produces exactly what the disk looked like at the frozen instant, even though the physical volume underneath has been rewritten many times.
Each snapshot exposes a device path of the form \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy12, and administrators can attach it to a drive letter with mklink /d to browse its contents like any folder. Snapshots are read-only and immutable: the diff area only ever gains saved originals, never rewrites them.
The Diff Area and Where Shadow Storage Lives
Saved originals have to go somewhere, and that somewhere is called the diff area, or shadow storage. It lives in the System Volume Information folder at the root of an NTFS volume, hidden from normal browsing and protected by system permissions. By default the diff area for a volume sits on the same volume it protects, but the association is configurable: storage for C: can be pointed at D: or at a dedicated volume entirely.
The association matters because vssadmin describes storage as a pair: shadow storage FOR a volume ON a volume. Same-volume storage is the default and costs nothing to set up. Moving it to another disk spreads the load, so a heavy write burst while a snapshot is alive does not compete with the very files being protected. Administrators running databases or file servers with heavy churn often make this move.
How much room does shadow storage need? Far less than people fear, and the honest answer is that it scales with change, not with size. A snapshot does not cost 1 percent of a 1 TB volume on day one; it costs only the bytes overwritten since the snapshot was taken. A lightly used desktop might accumulate a few hundred megabytes in a week. A workstation where someone edits video all day, or a server hosting a busy database, can burn gigabytes per hour. The default ceiling is a modest slice of the volume, often somewhere in the single digits of percent, and the storage grows toward that ceiling and no further.
Shadow copies exist only on NTFS, and they disappear with the volume: shrinking the volume, reformatting it, or replacing the disk wipes every snapshot it held.
The Moment the Diff Area Runs Out of Room
Every snapshot carries a promise that saved originals will still be there when someone asks for them. The diff area's ceiling decides how long that promise can be kept. When storage hits the cap, VSS starts evicting the oldest snapshots to make room for new saved blocks, one at a time. The symptom is quiet and slightly painful: the Previous Versions list gets shorter from the top, and the version from three weeks ago that someone now wants has already been recycled to make room for last Tuesday's saves.
If space is so tight that even eviction cannot keep up, the snapshot breaks. A broken snapshot cannot honor reads, so the system deletes it rather than serve wrong data, and whatever history it represented is gone. On a volume whose cap is too small for its churn, this becomes a loop: snapshot created, storage fills, oldest deleted, and the effective history window stays a few days no matter how patient you are.
There is good news in the accounting, though. Consecutive snapshots share the diff area intelligently. When several snapshots are alive and a block changes, the original is saved once and serves all of them, because every snapshot taken before that write wants the same old bytes. The second snapshot on a volume costs real storage, but the third and fourth cost progressively less. In practice, a week of daily snapshots needs far less than seven independent copies, because history is shared, not duplicated.
Writers and Providers, the Triangle That Keeps Data Sane
A snapshot taken at a random microsecond of a busy system is a lie. Half a transaction sits in memory, half on disk, and the frozen volume contains a database that no application could open cleanly. VSS solves this with the third side of its triangle. Writers are the third side, registered by applications and by Windows itself.
The cast is familiar. The Registry writer flushes pending registry changes so the hives captured on the snapshot are not caught mid-edit. The System writer covers operating system files. Microsoft SQL Server ships a writer that guarantees a snapshot of a database is transactionally consistent, meaning a restored copy needs no manual repair, and Exchange and Hyper-V ship their own equivalents. Backup software does not have to understand any of these formats. It asks VSS, VSS asks the writers, and each application quiets its own writes at the right moment.
The sequence is strictly choreographed and strictly timed. A writer receives a prepare event, flushes its buffers, then holds its writes during a Freeze window measured in seconds. Between Freeze and Thaw, the provider takes the snapshot, which takes only moments because copy on write defers the real work. Then writes resume. If a writer cannot complete its part in time, or fails outright, VSS aborts the snapshot rather than freeze a torn state. You can see every registered writer and its health with vssadmin list writers, which is the first command to run when backups start failing for no obvious reason.
Providers form the final side of the triangle. Windows ships a software provider that implements copy on write inside the operating system, which is the engine this article describes. Storage arrays can offer hardware providers that snapshot at the controller level, offloading the work from the server entirely. Either way the requestor sees the same interface, which is why one backup program works unchanged against a desktop and a storage network. vssadmin list providers shows which engines are registered on a given machine.
Inspecting and Resizing Shadow Storage from the Command Line
Everything described so far is visible from an elevated command prompt, and two commands answer most questions about it. vssadmin list shadows /for=C: enumerates the live snapshots on drive C, each with its creation time, its shadow copy ID, and its device object path. vssadmin list shadowstorage shows the storage accounting per association, and the three numbers it prints tell the whole story:
Shadow Copy Storage association
For volume: (C:)\\?\Volume{9b7f2c1a-1111-2222-3333-444455556666}\
Shadow Copy Storage volume: (C:)\\?\Volume{9b7f2c1a-1111-2222-3333-444455556666}\
Used Shadow Copy Storage space: 4.2 GB (1%)
Allocated Shadow Copy Storage space: 5.3 GB (1%)
Maximum Shadow Copy Storage space: 37.2 GB (10%)
Used is the space actually occupied by saved originals. Allocated is what the diff area currently reserves, including room held for growth, so it sits slightly above Used. Maximum is the ceiling, the same value the graphical interface displays and edits. The graphical route is the Configure button on a volume's Previous Versions tab, or in System Properties under System Protection; both open the same dialog, where a slider sets the Maximum value directly.
Suppose a workstation with a 512 GB system drive shows the numbers above, and the administrator wants a predictable 20 GB ceiling instead of a floating 10 percent. The resize takes one command:
vssadmin Resize ShadowStorage /For=C: /On=C: /MaxSize=20GB
VSS confirms with a success message, and a repeat of list shadowstorage shows the new ceiling in force. Three details make the operation predictable. Shrinking below the currently allocated space is allowed, and VSS prunes the oldest snapshots until the storage fits the new cap, so expect the visible history to shorten. MaxSize=UNBOUNDED removes the ceiling entirely, letting snapshots live as long as free disk space allows, an option best reserved for volumes with room to spare. vssadmin resize shadowstorage remains the supported command; there is no built-in Set-ShadowStorage cmdlet, so scripts that need the same data use the Win32_ShadowCopy and Win32_ShadowStorage WMI classes.
Two companions round out the toolkit. diskshadow, the scripting-oriented sibling of vssadmin, exposes richer list and create operations for automated setups, and PowerShell's Get-CimInstance Win32_ShadowCopy makes snapshots queryable from scheduled scripts. The opposite operation deserves a warning. vssadmin delete shadows /for=C: /all erases every restore point and every previous version on the volume at once, which is exactly why ransomware runs it as one of its first acts.
Previous Versions, System Restore, and the Recovery Trail
Previous Versions and System Restore are customers of VSS, not separate time machines. When you open Restore previous versions on a file or folder, Explorer reads the snapshots VSS keeps and offers each one for opening, copying, or restoring, and the restore itself is just a copy out of the read-only snapshot, so nothing on the live volume is rolled back except the file you chose. System Restore uses the same snapshots more surgically: a restore point captures system files, drivers, and the registry, and rolling back restores those from the snapshot while leaving documents and photos alone. The feature set has shifted: Windows 8 pulled back automatic snapshot creation in favor of File History, and Windows 10 and 11 revived the tab, though it stays empty until System Protection is on or File History has run.
That emptiness carries meaning, too. Shadow copies are a paper trail. For investigators reconstructing what happened to a machine, the diff area often holds earlier versions of files that were overwritten, deleted, or moved after the fact. A user who overwrote the wrong document on Monday can often be rescued from Tuesday's snapshot, and the same snapshot can prove what a configuration file contained before anyone changed it. The trail cuts both ways: intact snapshots are among the first things attackers destroy, and finding vssadmin delete shadows in an incident timeline is itself a finding. Mounting a snapshot for examination is usually a matter of linking its device path, for example mklink /d C:\ShadowMount \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy12.
Backups ride the same rails. Running wbadmin start backup -backupTarget=E: -include=C: triggers a VSS snapshot of C: behind the scenes and streams from it, which is why the diff area needs headroom even on machines where nobody ever opens the Previous Versions tab. Third-party backup products use the same machinery and the same writers, and they inherit the same appetite for diff area space.
One habit ties the whole topic together. Check vssadmin list shadowstorage on the machines you care about, once, today. If the maximum is a sliver and the churn is heavy, the history window is shorter than anyone assumes, and the day someone needs last month's version is the wrong day to find that out.