Hi Bill Artemik,
The error VSS_E_UNEXPECTED_PROVIDER_ERROR (0x8004230f) combined with "Access is denied" is a strong indicator that the Microsoft Software Shadow Copy Provider service is in a "zombie" or hung state. Even though you are running as Administrator, the service is refusing the deletion request because it cannot process the internal logic required to access the shadow storage area.
Here is the procedure to clear this deadlock:
Step 1: Force Restart the VSS Services
- Open an elevated Command Prompt (Run as Administrator). Run the following commands in order to stop the services (don't worry if it says they aren't started):
net stop "Microsoft Software Shadow Copy Provider"
net stop "Volume Shadow Copy"
- Now, start them back up:
net start "Microsoft Software Shadow Copy Provider"
net start "Volume Shadow Copy"
- Try your deletion command again:
vssadmin delete shadows /all
Step 2: The "Resize" Trick (If Step 1 fails)
If the deletion still says "Access Denied," the Shadow Storage area itself might be corrupted or locked. We can force VSS to "re-evaluate" the storage area by slightly changing its size limit. This often breaks the lock on old files.
- Check your current association (replace C: with your target drive letter):
vssadmin list shadowstorage
Note the "Maximum Shadow Copy Storage space" value.
- Resize it to something infinite (UNBOUNDED) or slightly larger/smaller to toggle the state:
vssadmin resize shadowstorage /for=C: /on=C: /maxsize=UNBOUNDED
- Immediately try deleting the shadows again:
vssadmin delete shadows /all
Step 3: Check for "Ghost" Providers (Critical)
You said that "the only VSS providers are from Microsoft," but often backup software updates (like Veeam, Datto, or Azure Backup) can leave a corrupted registry key that hides a third-party provider, causing the System Provider to fail with 0x8004230f.
- Open Regedit. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS\Providers
- You should see only one subkey here: {b5946137-7b9f-4925-af80-51abd60b20d5} (This is the Microsoft Software Shadow Copy Provider).
- If you see any other GUIDs below it, export the key for backup, and then delete the extra GUID keys. Restart the services again (Step 1) and retry.
One final note on "Access Denied": If vssadmin delete shadows /all continues to say "Access is denied" despite being Administrator, it is possible the shadows were created by a specific Backup Service Account (e.g., Azure Backup or SQL Backup) that has set a "Hardware" flag or "Backup" flag on the shadow that prevents manual deletion. In that case, diskshadow is usually the answer, but since your diskshadow is erroring out, Step 1 (Service Restart) is your highest probability fix.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept answer. Should you have more questions, feel free to leave a message. Have a nice day!
VPHAN