https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IxNzI2IiwiaGFzaCI6IjJjOGQ5ZTQ2LWU1ZTYtNGEyNy04NDllLTE1ZWVlNDEyNTA3NSJ9
1-800-691-1991 | 9am - 8pm ET
EN

A required privilege is not held by the client

Challenge

When attempting to perform modification of the registry hive of a Domain Controller in a SureBackup Job, VDK encounters an error. You can successfully mount and modify the hive, but when you try to save it, the following error occurs:

<01> Info     Execute VDK command: close * /F
<14> Info     VDK close: Virtual Disk Driver for Windows version 4.0
<15> Info     VDK close: Closing the image on the virtual disk 0...
<15> Info     VDK close: Failed to dismount a partition.
<15> Info     VDK close:
<15> Info     VDK close: Access is denied.
<15> Info     VDK close: The operation is forced to proceed
.....
<01> Error    A required privilege is not held by the client (System.ComponentModel.Win32Exception)
<01> Error       at Veeam.Backup.Common.Windows.CRegistry.SaveKey(IntPtr hKey, String lpFile, UInt32 flag)
<01> Error       at Veeam.Backup.Common.Windows.CRegistryHiveLoadSession.SaveHive(String fileName)
<01> Error       at Veeam.Backup.Common.Windows.CRegistryHiveLoadSession.FlushHive()
<01> Error       at Veeam.Backup.SureBackup.Tools.CVmRegistryFile.Dispose()

Cause

The issue may be caused by lack of permissions for the service account, under which the Veeam Backup Service runs in the Local Security Policy.

Solution

 
To call RegSaveKeyEx successfully, you need to assign the SE_BACKUP_NAME privilege.
You can check the privilege on your machine under Control Panel > Administrative Tools > Local Security Policy > Local Policies > User Rights Assignment > Back up files and directories
KB ID:
1726
Product:
Veeam Backup & Replication
Version:
5.X 6.X
Published:
2013-03-01
Last Modified:
2020-08-13
Please rate how helpful this article was to you:
5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.

OK

error icon

Oops! Something went wrong.

Please go back try again later.