Requested registry access is not allowed

PowerShell script exchange

Requested registry access is not allowed

Veeam Logoby masonit » Thu Feb 26, 2015 3:42 pm

Hi

After uppgrading from Veeam 7 to 8 I get this error when running Veeam commands (requested registry access is not allowed). I am logged in on the vbr server with a domain account that is part of the local administrator group. Other powershell commands work fine but not Veeam commands. If I choose to start powershell as administrator or if I starts powershell from vbr console then it works fine. But that is not always possible... It worked in veeam 7 so something has changed. Powershell is version 4.

\Masonit
masonit
Service Provider
 
Posts: 141
Liked: 10 times
Joined: Tue Oct 09, 2012 2:30 pm
Full Name: Magnus Andersson

Re: Requested registry access is not allowed

Veeam Logoby rccl_ecain » Tue Apr 28, 2015 3:07 pm

Any update on this? Having the issue on a new 2012 R2 VM. Works when launched from Veeam, but NOT when run as Admin or otherwise.
Retired 'Cloud Admiral'. Might actually be on a ship.
rccl_ecain
Influencer
 
Posts: 12
Liked: 14 times
Joined: Tue Jan 06, 2015 10:46 pm
Location: Miramr, FL
Full Name: Ethan Cain

Re: Requested registry access is not allowed

Veeam Logoby jcgam » Tue Apr 28, 2015 4:54 pm

I have the same problem too.
jcgam
Novice
 
Posts: 5
Liked: never
Joined: Wed Mar 02, 2011 3:48 pm
Full Name: John

Re: Requested registry access is not allowed

Veeam Logoby v.Eremin » Wed Apr 29, 2015 10:10 am

Ethan, John,

May I ask you to describe the issue in more details? Are those scripts specified as pre-,post job commands, or as pre-freeze, post-thaw VM commands? What permissions does the Veeam service account have? You're saying that the only way to make the scripts work is to run them from VB&R?

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Requested registry access is not allowed

Veeam Logoby Damien84 » Thu Sep 10, 2015 8:07 pm

Damien84
Lurker
 
Posts: 1
Liked: never
Joined: Thu Sep 10, 2015 8:06 pm
Full Name: Damien H Dyell

Re: Requested registry access is not allowed

Veeam Logoby cloud00hawk » Wed Feb 24, 2016 7:57 pm

Does this issue get resolved ? Running into the same issue. It works for adding a VM to a job and remove a VM from job. It fails for Get-VBRBackup command.
cloud00hawk
Novice
 
Posts: 5
Liked: never
Joined: Tue Mar 17, 2015 2:38 pm

Re: Requested registry access is not allowed

Veeam Logoby v.Eremin » Thu Feb 25, 2016 11:38 am

Kindly, avoid posting the same question in the multiple discussions for the purpose of convenience.

In most case the root cause of the experienced issue is the given account lacking required permissions. What happens if you try to run the script manually, using Administrator account, or use the self-elevated approach mentioned above?

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Requested registry access is not allowed

Veeam Logoby ccatlett1984 » Sun Mar 13, 2016 6:35 pm 1 person likes this post

Edit the permissions on the following registry key:
HKLM\Software\Veeam
Grant "Full Control" to "Users" and you will have your scripts running without issue (without running as admin.)

I had the same issues with a script I run via scheduled task to get the # of free tapes in my autoloader.
For some unknown reason, the Veeam snap-in needs to write to some key in this location. (Even if you are only running "Get" or "Find" cmdlets)
ccatlett1984
Enthusiast
 
Posts: 83
Liked: 9 times
Joined: Thu Oct 31, 2013 5:11 pm
Full Name: Chris Catlett


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests