Disable Shadow Copy (breaks System Restore and Windows Backup)
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: Medium
System Functionality / Data Loss Risk: Moderate
This action improves privacy with minimal impact when you run the recommended script.
This action improves privacy with some impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script disables the Shadow Copy service, known also as the Volume Shadow Copy Service (VSS) 1 2 3 4 5 or Volume Snapshot Service 4 6. This service is integral for system backups 1 2 3 5 and data snapshots 1 5 7. It allows for data recovery 1 5 and system restore points 1 7 8.
Introduced with Windows Server 2003 1, VSS facilitates backups and system restores without needing to take applications offline 1. It creates a consistent snapshot of data for backup, supporting functions like archiving, data mining, and disk-to-disk backups 1. These snapshots can restore data in case of data loss, to the original location or a new one, if the original has failed 1.
However, VSS has privacy and security risks:
- It can store unencrypted versions of files, even after users have encrypted and securely deleted them 5 7. This feature, while useful for recovery, poses a risk as it allows retrieving deleted files, undermining efforts to permanently remove sensitive information.
- Malware may use this service for persistence 4.
- Forensic investigators use shadow copies to recover deleted files and analyze your behavior 5.
Disabling VSS can also free up system resources and potentially improve performance by eliminating the creation and storage of shadow copies. But it will render system restore points 1 8 and Windows Backup 1 features inoperative, potentially compromising data recovery capabilities. This trade-off between privacy/security and system recovery features should be carefully considered.
Disabling this service will make shadow copies unavailable for backup, which could cause backup processes to fail 3. Services that depend on VSS will not start, affecting features like Windows Server Backup 1, Shadow Copies of Shared Folders 1, System Center Data Protection Manager 1, and System Restore 1 8.
Overview of default service statuses
OS Version | Status | Start type |
---|---|---|
Windows 10 (≥ 22H2) | 🔴 Stopped | Manual |
Windows 11 (≥ 23H2) | 🔴 Stopped | Manual |
This script is only recommended if you understand its implications.
Some non-critical or features may no longer function correctly after running this script.
This script can be fully reversed to restore changes if something goes wrong.
Sources
- Volume Shadow Copy Service. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/windows-server/storage/file-server/volume-shadow-copy-service
Archived: https://web.archive.org/web/20240218220458/https://learn.microsoft.com/en-us/windows-server/storage/file-server/volume-shadow-copy-service - Volume Shadow Copy Service Overview - Win32 apps. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/windows/win32/vss/volume-shadow-copy-service-overview
Archived: https://web.archive.org/web/20240218220517/https://learn.microsoft.com/en-us/windows/win32/vss/volume-shadow-copy-service-overview?redirectedfrom=MSDN - Volume Shadow Copy - Windows 10 Service - batcmd.com. batcmd.com. (2024).
Original: https://batcmd.com/windows/10/services/vss
Archived: https://web.archive.org/web/20240218221447/https://batcmd.com/windows/10/services/vss/ - CVE-2021-36934 - Security Update Guide - Microsoft - Windows Elevation of Privilege Vulnerability. msrc.microsoft.com. (2024).
Original: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36934
Archived: https://archive.ph/2024.02.18-221756/https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36934 - Forensic Analysis of Windows 10 Volume Shadow Copy Service. University of North Georgia. iiis.org. (2024).
Original: https://www.iiis.org/CDs2018/CD2018Spring/papers/ZA288KS.pdf
Archived: https://web.archive.org/web/20240218221441/https://www.iiis.org/CDs2018/CD2018Spring/papers/ZA288KS.pdf - Introducing Windows Server 2016 Technical Preview. John McCabe and the Windows Server team. download.microsoft.com. (2024).
Original: https://download.microsoft.com/download/7/1/B/71B9C665-6D2B-4154-AB7E-9CDC40647B57/697737_ebook_mobile_TechPreview.pdf
Archived: https://web.archive.org/web/20240218220401/https://download.microsoft.com/download/7/1/B/71B9C665-6D2B-4154-AB7E-9CDC40647B57/697737_ebook_mobile_TechPreview.pdf - The Security Implications of Windows Volume Shadow Copy - Schneier on Security. www.schneier.com. (2024).
Original: https://www.schneier.com/blog/archives/2009/12/the_security_im.html
Archived: https://web.archive.org/web/20240218220503/https://www.schneier.com/blog/archives/2009/12/the_security_im.html - [BUG]: Can't access sign-in options nor create a restore point · Issue #81 · undergroundwires/privacy.sexy · GitHub. github.com/undergroundwires/privacy.sexy. (2024).
Original: https://github.com/undergroundwires/privacy.sexy/issues/81
Archived: https://web.archive.org/web/20240218220527/https://github.com/undergroundwires/privacy.sexy/issues/81
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable Shadow Copy (breaks System Restore and Windows Backup)" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable Shadow Copy (breaks System Restore and Windows Backup)" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable Shadow Copy (breaks System Restore and Windows Backup)
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Disable service(s): `VSS`
PowerShell -ExecutionPolicy Unrestricted -Command "$serviceName = 'VSS'; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue; if(!$service) { Write-Host "^""Service `"^""$serviceName`"^"" could not be not found, no need to disable it."^""; Exit 0; }; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) { Write-Host "^""`"^""$serviceName`"^"" is running, stopping it."^""; try { Stop-Service -Name "^""$serviceName"^"" -Force -ErrorAction Stop; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch { Write-Warning "^""Could not stop `"^""$serviceName`"^"", it will be stopped after reboot: $_"^""; }; } else { Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if already disabled #>; $startupType = $service.StartType <# Does not work before .NET 4.6.1 #>; if (!$startupType) { $startupType = (Get-WmiObject -Query "^""Select StartMode From Win32_Service Where Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; if(!$startupType) { $startupType = (Get-WmiObject -Class Win32_Service -Property StartMode -Filter "^""Name='$serviceName'"^"" -ErrorAction Ignore).StartMode; }; }; if ($startupType -eq 'Disabled') { Write-Host "^""$serviceName is already disabled, no further action is needed"^""; Exit 0; }; <# -- 4. Disable service #>; try { Set-Service -Name "^""$serviceName"^"" -StartupType Disabled -Confirm:$false -ErrorAction Stop; Write-Host "^""Disabled `"^""$serviceName`"^"" successfully."^""; } catch { Write-Error "^""Could not disable `"^""$serviceName`"^"": $_"^""; }"
Ijo6IFJlc3RvcmUgc2VydmljZShzKSB0byBkZWZhdWx0IHN0YXRlOiBgVlNTYFxuUG93ZXJTaGVsbCAtRXhlY3V0aW9uUG9saWN5IFVucmVzdHJpY3RlZCAtQ29tbWFuZCBcIiRzZXJ2aWNlTmFtZSA9ICdWU1MnOyAkZGVmYXVsdFN0YXJ0dXBNb2RlID0gJ01hbnVhbCc7ICRpZ25vcmVNaXNzaW5nT25SZXZlcnQgPSAgJGZhbHNlOyBXcml0ZS1Ib3N0IFwiXlwiXCJSZXZlcnRpbmcgc2VydmljZSBgXCJeXCJcIiRzZXJ2aWNlTmFtZWBcIl5cIlwiIHN0YXJ0IHRvIGBcIl5cIlwiJGRlZmF1bHRTdGFydHVwTW9kZWBcIl5cIlwiLlwiXlwiXCI7IDwjIC0tIDEuIFNraXAgaWYgc2VydmljZSBkb2VzIG5vdCBleGlzdCAjPjsgJHNlcnZpY2UgPSBHZXQtU2VydmljZSAtTmFtZS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pIHsgaWYgKCRzZXJ2aWNlLlN0YXR1cyAtbmUgW1N5c3RlbS5TZXJ2aWNlUHJvY2Vzcy5TZXJ2aWNlQ29udHJvbGxlclN0YXR1c106OlJ1bm5pbmcpIHsgV3JpdGUtSG9zdCBcIl5cIlwiYFwiXlwiXCIkc2VydmljZU5hbWVgXCJeXCJcIiBpcyBub3QgcnVubmluZywgc3RhcnRpbmcgaXQuXCJeXCJcIjsgdHJ5IHsgU3RhcnQtU2VydmljZSAkc2VydmljZU5hbWUgLUVycm9yQWN0aW9uIFN0b3A7IFdyaXRlLUhvc3QgXCJeXCJcIlN0YXJ0ZWQgYFwiXlwiXCIkc2VydmljZU5hbWVgXCJeXCJcIiBzdWNjZXNzZnVsbHkuXCJeXCJcIjsgfSBjYXRjaCB7IFdyaXRlLVdhcm5pbmcgXCJeXCJcIkZhaWxlZCB0byBzdGFydCBgXCJeXCJcIiRzZXJ2aWNlTmFtZWBcIl5cIlwiLCByZXF1aXJlcyByZXN0YXJ0LCBpdCB3aWxsIGJlIHN0YXJ0ZWQgYWZ0ZXIgcmVib290LmByYG4kX1wiXlwiXCI7IH07IH0gZWxzZSB7IFdyaXRlLUhvc3QgXCJeXCJcImBcIl5cIlwiJHNlcnZpY2VOYW1lYFwiXlwiXCIgaXMgYWxyZWFkeSBydW5uaW5nLCBubyBuZWVkIHRvIHN0YXJ0LlwiXlwiXCI7IH07IH1cIiI=
Help
How to apply or restore "Disable Shadow Copy (breaks System Restore and Windows Backup)" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable non-essential services
- Remove bloatware
This category contains scripts designed to enhance privacy by disabling system services that are not essential for your operating system's core functions. A Window...
Remove bloatware — This system calibration provides an easy-to-follow breakdown of how. Besides that, this documentation offers practical insights on the procedure...
Same Goal
Other guides in Disable non-essential servicesSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
See all 8 guides
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.