Get & Set Software Restriction Group Policy Registry Keys

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Richard Diphoorn Richard Diphoorn 1 year, 4 months ago.

  • Author
  • #26093
    Profile photo of Jacob Benson
    Jacob Benson

    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
    Profile photo of Richard Diphoorn
    Richard Diphoorn

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

You must be logged in to reply to this topic.