How to Delete VSS Shadows You Can’t Delete: outside of your allowed context…
You may run into a situation where some Volume Shadow Copy Service (VSS) shadows can’t be deleted.
You tried:
vssadmin delete shadows /all
but receive the error message:
Error: Snapshots were found, but they were outside of your allowed context. Try removing them with the backup application which created them.
This peculiar error basically means Windows won’t let you touch the VSS shadow copy….despite the fact you are logged on as admin.
How to Fix “outside of your allowed context” Errors
In order to get rid of these kinds of shadows we need to apply a “trick”. Basically the VSS diff area storage is where VSS keeps these shadows “alive”.
By seriously cutting this limit to the bare minimum we invoke a mechanism in VSS itself that causes it to dump all shadows.
So we proceed by telling VSS to cut the limit down to 401 MB. For some reason the user interface will claim the bottom is 300MB but on several versions of Windows it refuses and reports:
Error: Specified number is invalid
The command that works uses 401MB and is (adapt it to your drive letter as needed):
vssadmin resize shadowstorage /for=D: /on=D: /maxsize=401MB
Then once you get “success” you can increase the limit once again to the recommended “unbounded” setting, or an actual limit value if you are using shadow copies for other purposes:
vssadmin resize shadowstorage /for=d: /on=D: /maxsize=unbounded
Then, vssadmin happily reports:
Successfully resized the shadow copy storage association
and a quick check using
vssadmin list shadows
reveals all VSS shadow copies are now gone!
PC and Server Backup Software for Professionals
Are you still using backup tools that quite don’t meet your needs? Give BackupChain a try today. BackupChain backup software offers a wealth of server backup and Hyper-V backup features along with unmatched tech support services!
BackupChain Features
Cloud backup
Mount FTP site to drive
Granular restore
SQL backup
Granular backup
Version backup and versioning
Exchange Server backup
Online backup
Hyper-V live backup
Cluster Shared Volumes
Best backup software
CSV backup
Cluster Shared Volume support
Copy Hyper-V files
Restore files in Hyper-V
File replication of Hyper-V VMs
Backup Software Overview
The Best Backup Software in 2024 Download BackupChain®BackupChain is the all-in-one server backup software for:
Server Backup
Disk Image Backup
Drive Cloning and Disk Copy
VirtualBox Backup
VMware Backup
Image Backup
FTP Backup
Cloud Backup
File Server Backup
Virtual Machine Backup
Server Backup Solution
Hyper-V Backup
Popular
- Best Practices for Server Backups
- NAS Backup: Buffalo, Drobo, Synology
- How to use BackupChain for Cloud and Remote
- DriveMaker: Map FTP, SFTP, S3 Sites to a Drive Letter (Freeware)
Resources
- BackupChain
- VM Backup
- V4 Articles
- Knowledge Base
- FAQ
- Archive 2024
- Archive 2022
- Archive 2021
- Archive 2020
- Archive 2019
- Archive 2017
- Archive 2016
- Archive 2015
- Archive 2014
- Archive 2013
- BackupChain (German)
- German Help Pages
- BackupChain (Greek)
- BackupChain (Spanish)
- BackupChain (French)
- BackupChain (Dutch)
- BackupChain (Italian)
- BackupChain is an all-in-one, reliable backup solution for Windows and Hyper-V that is more affordable than Veeam, Acronis, and Altaro.
Other Backup How-To Guides
- How to Install Hyper-V on a Windows Server 2012 Machine
- How to Delete All VSS Shadows and Orphaned Shadows
- RAMKick™: Like RAMMap but Automatic, Empty System Working Set Memory
- Video Step-by-Step Hyper-V Backup on Windows 11 and Windows Server 2022
- How to Install Microsoft Hyper-V Server 2012 R2 / 2008 R2
- How to Set up P2V, P to V for Hyper-V, Step-by-Step Video
- USB Disks and Hyper-V: How to Use, Pros and Cons
- Hyper-V Dynamic Disk Pros and Cons
- How to Restore VMware VMs, Step-by-Step Video
- FTP Server TCP/IP Port Exhaustion Prevention
- How to Delete VSS Shadows You Can’t Delete: outside of your allowed context…
- BackupChain is American Backup Software, 100% Made in USA
- Hyper-V Pass-through Disks: Advantages, Disadvantages, and Limitations
- NAS Backup Software for QNAP, Buffalo, Drobo, and Synology
- Deduplication of Virtual Machine Backups in Hyper-V and VMware
- How Fix Invalid File Date Time Automatically
- How to Mount an Amazon S3 Bucket as a Drive in Windows
- Video Step-by-Step Restore VM from Hyper-V Backup on Windows Server 2022 and Windows 11
- Convert VHD files to VHDX, VMDK, VDI, and Physical Disk
- VSS Crash and Application Consistency for Hyper-V and VMware Backups