Invoke-Command profile or HKCU issue?

Welcome Forums General PowerShell Q&A Invoke-Command profile or HKCU issue?

This topic contains 2 replies, has 1 voice, and was last updated by

 
Participant
2 years, 3 months ago.

  • Author
    Posts
  • #54794

    Participant
    Points: 23
    Rank: Member

    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?
    Thanks
    David

  • #54795

    Participant
    Points: 23
    Rank: Member

    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

    Participant
    Points: 23
    Rank: Member

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

The topic ‘Invoke-Command profile or HKCU issue?’ is closed to new replies.