Get & Set Software Restriction Group Policy Registry Keys

Welcome Forums General PowerShell Q&A Get & Set Software Restriction Group Policy Registry Keys

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
4 years, 2 months ago.

  • Author
    Posts
  • #26093

    Participant
    Topics: 5
    Replies: 9
    Points: 0
    Rank: Member

    I am trying to Get and Set registry keys that relate to Software Restriction policy GPO's. For one example I have the following path to the registry key, but no matter what I do it just always tells me that "The following group policy setting was not found".

    Get-GPRegistryValue -Name Test -Key "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\ARKENSTONE.COM{GUID}User\Software\Policies\Microsoft\Windows\Safer\CodeIdentifiers\262144\Paths\{0b6abc9d-1568-4e1f-a3ab-7f36023395a0}" -ValueName ItemData

    I have also tried it without the ValueName parameter and it does the same thing. Test is the name of the GPO that is setting the values.

    What am I doing wrong here?

  • #26099

    Participant
    Topics: 4
    Replies: 179
    Points: 26
    Rank: Member

    I think you should not use the double quotes, use single quotes around the key. Also specify the context, Computer or User.

The topic ‘Get & Set Software Restriction Group Policy Registry Keys’ is closed to new replies.