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?