Posted On February 14, 2020

VSS Error: Snapshots were found, but they were outside of your allowed context

kimconnect 0 comments
blog.KimConnect.com >> Codes , Windows >> VSS Error: Snapshots were found, but they were outside of your allowed context

Error:


PS C:\Windows\system32> vssadmin delete shadows /for=c: /all
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Error: Snapshots were found, but they were outside of your allowed context. Try removing them with the
backup application which created them.

Resolution:

# Temporarily reduce the allowable snapshot storage and then reapply best practice
vssadmin resize shadowstorage /for=c: /on=c: /maxsize=400MB
vssadmin resize shadowstorage /for=c: /on=c: /maxsize=unbounded

Output:


PS C:\Windows\system32> vssadmin resize shadowstorage /for=c: /on=c: /maxsize=400MB
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Successfully resized the shadow copy storage association
PS C:\Windows\system32> vssadmin resize shadowstorage /for=c: /on=c: /maxsize=unbounded
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Successfully resized the shadow copy storage association
PS C:\Windows\system32> vssadmin delete shadows /for=c: /all /quiet
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Automatically Fix SQL Server by Killing Long Running Queries

# autofixSqlLongRunningQueries.ps1 # version 0.01 # This version is limited to SQL Server Localhost execution,…

How To Invoke Functions as Background Jobs

Invoke-Command, Start-Job, Multi-Tasking is what good coders should aspire toward. Here, we're looking at some…

PowerShell: Adding a User to Local Groups

Adding User(s) to Local Groups # addUserToLocalGroup.ps1 # Version 0.02 $computernames=@( 'SERVER0001', 'SERVER0002' ) $accountsToAdd='domain\user1','domain\user2'…