VSS Error 8194: Access Denied
An image-based or VM backup plan fails with an error message similar to this:
2020-01-01 10:00:00,000 [PL]  ERROR - Error on backup completed snapshot. SnapshotCreated: False Alphaleonis.Win32.Vss.VssBadStateException The VSS object was in an incorrect state for the requested operation.
2020-01-01 10:00:00,000 [SERV]  ERROR - Backup failed CloudBerryLab.Backup.Engine.Utils.VSS.WriterStatusException 'Microsoft Hyper-V VSS Writer' writer status is invalid. State: FailedAtPrepareSnapshot, Failure: WriterErrorNonRetryable
If you refer to the Windows System event log, the following error is present:
VSS Error 01/01/2020 10:00:00 PM EventID: 8194 Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface. hr = 0x80070005, Access is denied. . This is often caused by incorrect security settings in either the writer or requestor process.
The Windows NETWORK SERVICE predefined local user does not have sufficient access permissions on this machine.
To grant the required permissions, proceed as follows:
- Open the Windows Start Menu, then run dcomcnfg tool.
- Expand the path Console Root => Component Services => Computers.
- Right-click on My Computer, then select Properties.
- In the My Computer Properties dialog box, switch to the COM Security tab.
- In the Access Permissions group, click Edit Default….
- In the Access Permission dialog box, click Add…
- In the Enter the objects name to select field of the Select Users, Computers, Service Account or Groups dialog box, specify the service name: Network Service, then click Check Names
- Click OK.
- In the Default Security group of the Access Permission dialog box, select NETWORK SERVICE.
- In the Permission for NETWORK SERVICE field, select the Local Access -> Allow check box.
- Click OK, then save changes and close all open dialog windows.
- Open MSP360 (CloudBerry) Backup.
- Switch to the Tools menu, then click Change Service Account.
- In the CloudBerry Backup Service Account dialog box, specify the local administrator credentials, then click OK. The Backup Service restarts automatically.
- Restart your computer, then run the backup plan again.