How to Use the VSSAdmin Command Line to Manage VSS in Windows

article
How to Use the VSSAdmin Command Line to Manage VSS in Windows

The VSSAdmin command-line tool allows you to manage Volume Shadow Copy Service (VSS) in Windows. VSS is responsible for creating shadow copies, which are snapshots of files or volumes used for backups and system restore operations.

This guide explains how to use the VSSAdmin command in Windows 10 and Windows 11.

What Is Volume Shadow Copy Service (VSS)

Volume Shadow Copy Service enables Windows to:

  • Create backup snapshots of files
  • Support System Restore points
  • Allow backup software to access locked files
  • Maintain previous file versions

Shadow copies are stored automatically when restore points are created.

How to Open Command Prompt as Administrator

To use VSSAdmin, you must run Command Prompt with administrative privileges.

  1. Press Windows + S
  2. Type cmd
  3. Right-click Command Prompt
  4. Select Run as administrator

Now you can execute VSSAdmin commands.

List All Shadow Copies

To view existing shadow copies:

vssadmin list shadows

This command displays:

  • Shadow copy ID
  • Creation time
  • Volume path

It helps you check available restore snapshots.

List All Volumes That Support Shadow Copies

To see volumes configured for VSS:

vssadmin list volumes

This shows available volumes where shadow copies can be created.

List Shadow Copy Storage Information

To check how much disk space VSS uses:

vssadmin list shadowstorage

This command displays:

  • Used storage space
  • Allocated storage space
  • Maximum storage limit

Resize Shadow Copy Storage

To increase or limit storage size:

vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=10GB

Replace C: with your drive letter and adjust the size as needed.

Be careful when reducing storage, as older shadow copies may be deleted.

Delete All Shadow Copies

To delete all shadow copies on a drive:

vssadmin delete shadows /For=C: /All

You will be prompted for confirmation.

Deleting shadow copies removes restore points permanently.

Delete Oldest Shadow Copy

To remove only the oldest snapshot:

vssadmin delete shadows /For=C: /Oldest

This frees up space while keeping recent restore points.

List VSS Writers

If backup operations fail, check VSS writers:

vssadmin list writers

All writers should show Stable status. If not, restart the related service.

Common Uses of VSSAdmin

Administrators use VSSAdmin to:

  • Troubleshoot backup failures
  • Manage restore points
  • Free disk space
  • Verify VSS health

It is often used in enterprise environments.

Important Warnings

  • Always run as administrator
  • Deleting shadow copies cannot be undone
  • Avoid modifying storage limits without understanding disk usage
  • Incorrect usage may affect backup operations

Use caution when managing VSS.

Final Thoughts

The VSSAdmin command-line tool is a powerful utility for managing Volume Shadow Copy Service in Windows 10 and Windows 11. It allows administrators to view, resize, and delete shadow copies, as well as troubleshoot backup issues. While useful, it should be used carefully to avoid data loss.

FAQs

What does VSSAdmin do
It manages Volume Shadow Copy Service snapshots.

Can I recover deleted shadow copies
No, once deleted they cannot be restored.

Does deleting shadow copies delete files
No, it deletes restore snapshots, not your current files.

Discover: Uncategorized

Discussion (0)

Be the first to comment.