About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
Event 8193 from source VSS has the message Volume Shadow Copy Service error: Unexpected error calling routine %1. hr = %2. %3. The event itself is a wrapper. The routine name and the hr code that replace the placeholders say what failed, and they decide whether the event matters at all.
What the symptom means
Microsoft's event reference gives the event the symbolic name VSS_ERROR_UNEXPECTED_CALLING_ROUTINE and says the event "indicates that an unexpected Volume Shadow Copy Service (VSS) error has occurred". Its guidance is to determine the cause in Event Viewer and contact the vendor of the data protection application that uses VSS.
That advice is generic, so read three parts of the message:
- The routine named after "calling routine", for example
RegOpenKeyExWorCoCreateInstance. - The
hrvalue, a Windows result code, and any text after it such as "Access is denied". - The extra lines the event carries, such as
Operation:andContext:, which name what VSS was doing.
Microsoft documents two cases where these differ completely. In one, VSS keeps working and the event can be ignored. In the other, no writers are listed and VSS backups cannot be expected to work.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| Registry permission on the VSS Diag key after a DHCP role install | Event 8193 with RegOpenKeyExW and hr = 0x80070005, Access is denied., Operation Initializing Writer, Writer Name System Writer; appears when Cryptographic Services starts |
DHCP Server role installed; Microsoft says Volume Shadow Copy and DHCP Server continue to function as expected, and vssadmin list writers should still list writers (our check) |
| VSS event class not registered | Events 34, 13 and 8193 with CoCreateInstance, hr = 0x80040154 or hr = 0x80070057; vssadmin list writers lists nothing |
The TypeLib value under the event class registry key is the wrong type or points to the wrong path |
| Shadow storage maximum too small | Event 8193 that ends Cannot find anymore diff area candidates for volume \\?\Volume{...}\ [0].; Veeam says backup or replication of a Windows OS fails |
Veeam KB2188: the maximum size of the shadow storage area is too small; mountvol maps the volume GUID to a mount point |
| Anything else | Another routine name or another hr code | Read the events near it in the Application log and follow their help text; check the VSS service is set to Manual |
Prove the cause before changing anything
Run these as an administrator. All of them only read.
-
Open Event Viewer, expand Windows Logs, select Application, and filter the current log on event source VSS. Sort by date and time and read the events near the 8193 entry. Microsoft's page says to read the events with a similar date and time and then use Event Log Online Help on the related event.
-
Write down the routine, the hr value and the Operation and Context lines. Match them to the table.
-
List the writers.
vssadmin list writers
If writers are listed, the event class is registered and the second cause is unlikely. If the command lists none, and events 34 and 13 sit beside the 8193 entries, the second cause fits. Microsoft's page for that case shows event 34 with the text "The VSS event class is not registered." and event 13 as a COM server for VSSEvent that cannot be started.
- For the second cause, read the registry value. This reads the key Microsoft names, which Microsoft writes as
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\EventClasses\{FAF53CC4-BD73-4E36-83F1-2B23F46E513E}-{00000000-0000-0000-0000-000000000000}-{00000000-0000-0000-0000-000000000000}.
reg query "HKLM\SOFTWARE\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\EventClasses\{FAF53CC4-BD73-4E36-83F1-2B23F46E513E}-{00000000-0000-0000-0000-000000000000}-{00000000-0000-0000-0000-000000000000}" /v TypeLib
A good result shows TypeLib with type REG_EXPAND_SZ. Microsoft says the type should be REG_EXPAND_SZ, and if it is not, the value has to be deleted and recreated. Microsoft's two causes are an incorrect registry path to Eventcls.dll and an incorrect registry data type for the TypeLib setting, so a different type or a different path fits the fault. A missing value is our own reading.
- Check the service startup type. Microsoft's page says to open Services, double-click Volume Shadow Copy, and make sure Startup type is Manual.
Fix
Registry read denied after a DHCP role install
Microsoft's page says Volume Shadow Copy and DHCP Server continue to function as expected, and that the event should not be considered a critical failure that affects the correct functioning of VSS. Its resolution is "you can ignore the event". The cause is that installing the DHCP role overwrites the permissions on HKLM\CurrentControlSet\Services\VSS\Diag and removes the Network Service account, which Cryptographic Services uses for the System Writer.
For a site that wants the event gone, the same page gives a PowerShell script that resets the permissions on the key, with a caution about new lines inside its commands. The script rewrites permissions on a registry key. Microsoft's page gives no way to undo it and the script is not reproduced here, because one wrong character in the descriptor changes who can read the key. The safest course is the one Microsoft's page names first: leave the event alone, because it says you can ignore it.
VSS event class not registered
Microsoft's fix replaces the TypeLib value and restarts two services. Changing registry values and restarting services on a server that runs backups should wait until no backup is running.
First save the current state:
reg export "HKLM\SOFTWARE\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\EventClasses\{FAF53CC4-BD73-4E36-83F1-2B23F46E513E}-{00000000-0000-0000-0000-000000000000}-{00000000-0000-0000-0000-000000000000}" vss-eventclass-before.reg
vssadmin list writers > vss-writers-before.txt
Disruptive step: the next steps edit a registry value that VSS depends on and then restart the COM+ Event System and Volume Shadow Copy services. A backup running at that moment fails, and a wrong value keeps VSS broken.
Follow Microsoft's steps in Registry Editor:
- Go to the registry key shown above and find the
TypeLibvalue. - If its type is not
REG_EXPAND_SZ, select the value and delete it, then create a new Expandable String Value namedTypeLib. - Set its data to
%systemroot%\system32\EVENTCLS.DLL. - In services.msc, restart COM+ Event System, then Volume Shadow Copy, one at a time.
- In an elevated prompt run
vssadmin list writersand check that writers are listed.
To undo it: import the saved registry file. If the TypeLib value was missing before, the saved file holds no TypeLib, so importing does not remove the value you created; delete that new TypeLib value in Registry Editor. Then restart the same two services and compare writers with the saved list.
reg import vss-eventclass-before.reg
vssadmin list writers
Shadow storage maximum too small
Veeam's KB2188 says its 8193 variant, which reads Volume Shadow Copy Service error: Unexpected error calling routine followed by Cannot find anymore diff area candidates for volume, means VSS cannot allocate disk space for the shadow copy because the maximum size of the shadow storage area is too small. Veeam notes that "There are a variety of possible VSS errors with ID 8193", so this applies only when that ending is present. To identify the volume in the event, Veeam says to run mountvol from a command prompt and match the GUID to a mount point. The steps to raise the maximum, with their save-first and back-out, are in VSS error 0x8004231F (VSSControl: -2147467259): insufficient storage to create the shadow copy.
Any other routine
Follow Microsoft's generic path: read the related events, follow the help text of the event next to it, and contact the vendor of the backup application that requested the shadow copy, supplying the entire event message. The same page says to make sure the Volume Shadow Copy service has startup type Manual.
Example (illustrative): db01 runs SQL Server and a nightly image backup that fails. The Application log shows event 34 (the VSS event class is not registered), event 13 and two event 8193 entries with CoCreateInstance and hr = 0x80040154. vssadmin list writers lists nothing. reg query ... /v TypeLib shows type REG_SZ, not REG_EXPAND_SZ. The engineer exports the key to vss-eventclass-before.reg, recreates TypeLib as an expandable string with the Microsoft path, restarts COM+ Event System and Volume Shadow Copy, and vssadmin list writers then lists writers including the SQL writer.
Confirm the fix
vssadmin list writerslists writers and each is stable.- The Application log shows no new 8193 entry at the next Cryptographic Services start or backup.
- The next backup completes its shadow copy step. Microsoft's page ends with the same check: retry the VSS operation that failed.
What to watch afterwards
- Installing a server role or a backup agent can change the registry or COM registration that VSS relies on; check
vssadmin list writersafter such a change. - A recurring 8193 with a routine that is not one of the two above needs the backup vendor's help, with the full event text.
- Keep
vss-writers-before.txtas the record of what a working server listed. - After a server role such as DHCP is installed, restarting Cryptographic Services logs the harmless
RegOpenKeyExWevent again, per Microsoft's page, which says the event appears each time the service starts; a repeat of that event alone is not a new fault. - Free space and the shadow storage maximum on volumes named in 8193 events that mention diff area candidates; Veeam says a limit of 15-20% of the volume size may be needed on busy servers.
Read next
Related articles you may want next.
- Backup & RecoveryVSS Writer Failed? Diagnose It Before the Next BackupWindows VM backup failed at the VSS stage? Read each writer's state, phase and last error, find the owning service, and decide the fix before the next run.Read article
- Backup & RecoverySqlServerWriter missing from vssadmin list writers: what it means for VSS backups of SQL ServerSqlServerWriter missing from vssadmin list writers? Check the SQL Writer service, its account and login, and database names before trusting VSS backups.Read article
- Backup & RecoveryVSS error 0x8004230F: "The shadow copy provider had an unexpected error while trying to process the specified operation"VSS error 0x8004230F, shadow copy provider had an unexpected error: list providers, read the Application log, then remove or bypass the culprit.Read article
Risks and limits
- These commands have not been run or lab-tested.
- Microsoft's event 8193 reference is written for Windows Server 2008 R2. The two specific cases are on pages for supported Windows Server versions, but the event-class page words its symptoms for Windows Server 2008, so the event numbers and text on newer servers can differ.
- Microsoft's page ties the
RegOpenKeyExWevent to the DHCP role only. The same routine name with another cause is not covered. - Editing the registry by hand can break VSS; the exported file restores the key's values, not other changes made at the same time.
NetLeverage includes a daily full disaster-recovery backup of each hosted server at no extra charge. Talk to an engineer.
Sources
- Event ID 8193 — Volume Shadow Copy Service Operations — Microsoft Learn, last updated 27 January 2011, accessed 2 December 2026
- VSS event ID 8193 is logged when you restart the Cryptographic Services service after you install the DHCP role on a computer — Microsoft Learn, last updated 12 February 2026, accessed 2 December 2026
- No VSS writers are listed when you run vssadmin list writers — Microsoft Learn, last updated 12 February 2026, accessed 2 December 2026
- Cannot find anymore diff area candidates for volume — Veeam Support Knowledge Base, KB2188, last modified 2 February 2022, accessed 2 December 2026
- reg query — Microsoft Learn, last updated 3 February 2023, accessed 2 December 2026
- reg export — Microsoft Learn, last updated 3 February 2023, accessed 2 December 2026
- reg import — Microsoft Learn, last updated 3 February 2023, accessed 2 December 2026
- vssadmin list writers — Microsoft Learn, last updated 1 November 2024, accessed 2 December 2026
This article was originally published on .