Fixing the Volume Shadow Copy service

After installing DHCP on Windows Server 2008 R2, you may start to see the following error message in the event logs :

Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,SYSTEM\CurrentControlSet\Services\VSS\Diag,…). hr = 0x80070005, Access is denied.

Inspection of the detailed tab of the event log entry will show information about the process that generated the error. Take note of the user mentioned after the “- User: Name:” portion of the bytes. To resolve this error, simply give that user full permission to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VSS registry key.

28 thoughts on “Fixing the Volume Shadow Copy service

  1. Pingback: MOSS Installation Pitfalls | SharePoint Blues

  2. Pingback: MOSS Installation Pitfalls « The MOSS Blog

  3. Jo Cox

    I got the same error post install of DHCP on win 2008 r2

    I added the service account with full permission to the following key and the error went


    Funnily enough I worked this out from a thread of someone who was having a similair error with his sharepoint office search service.

  4. BrentonK

    When the DHCP role is installed on s Sever 2008 machine the VSS writer “DHCP Jet Writer” is added. The error in question can be cause when the account running the DHCP service does not have access to the aforementioned registry key. I believe that DHCP is set to run under the NETWORK SERVICE account by default so as Jean-Sebastien said, giving the NETWORK SERVICE account permissions to the registry key should fix it.

  5. Admin

    The VSS starts with a certain permission… in my example as NetworkService… You just have to give this NetworkService the right to write in this registry-key. This will solve any problems.
    By the way: no user is able to log in as NetworkService, so no user can manipulate it with these rights.

  6. JFL

    Had the same problem with a WINS server installed on Windows 2008 R2.

    The WINS service start with “local service” which didn’t have permission on VSS DIAG key.

    After adding permission, I restarted WINS, and no error. Aditionnaly under the DIAG key a new key called “WINS Jet Writer” has been created.

    However I would be interested to know what are the minimum permission that should be set on the diag key.
    Not a big security breach maybe, but it’s always better to set only required permessions.

  7. Pingback: Błąd 8193 VSS po instalacji DHCP « Technologia okiem studenta

  8. Pingback: Adventures upgrading to SharePoint 2010 | SoftArtisans, Blogged Adventures upgrading to SharePoint 2010 | The Cathedral and the Bizarre

  9. Sascha

    i had the same problem, with the “WINS Jet Writer”.

    after giving the local service the permission to the registry key, the message disappears and
    the key for the WINS jet writer will be created….

  10. Albert Jeremy

    Thanks for the enlightment, it fixed my TermServLicensing VSS issue. :) the account used for authentication, it can be found in the details Tab -> Friendly View -> Binary Data. Not the General tab.

  11. rhonin powers

    I got the same error and just as the other user it was on my Wins “local account”…I gave it full perms and just as “Sascha”…said above: I restarted the service and waited to check and see if the Wins Jet key got created and it did!

    Great help everyone and especially to you Sascha!!!!

  12. Dean B

    Just to reiterate what most here have already said… thanks! This is exactly what I needed.

  13. Sean Wright

    In my case the user was the Acronis account which makes sense as it is calling this service to run the backup

  14. Pingback: Event ID 8193 — Volume Shadow Copy Service Operations | Marcus Vinicius dos Reis

  15. Glen Kratochvil

    Just adding my gratitude for this solution. I had this same problem arise on my Server 2012 R2 guest machine in Hyper-V. Replication was failing until I had granted these permissions. Thank you!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>