Author Posts

October 2, 2016 at 11:17 pm

I run an Invoke-Command from my 'admin' account to do a simple get-service and it works fine.
When this command is run from another account, I get the error 'Requested registry access is not allowed'. This other account is a member of 'domain admins'. Is this some sort of profile or HKCU issue? If so, how do I get around it please?

October 2, 2016 at 11:43 pm

I also note on the target machine that whenever I try to run the 'get-service' via invoke-command an eventlog error is generated from the user profile service that says 'Windows cannot load classes registry file'.

October 2, 2016 at 11:46 pm

Fixed it! Just deleted the profile on the target server for the account that was failing and it now works!