Invoke-Command profile or HKCU issue?

This topic contains 2 replies, has 1 voice, and was last updated by  David Zemdegs 1 year, 8 months ago.

  • Author
  • #54794

    David Zemdegs

    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?

  • #54795

    David Zemdegs

    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'.

  • #54796

    David Zemdegs

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

You must be logged in to reply to this topic.