Windows GPO Editor vs Programmatic Registry edit.
I wasn't sure which sub to ask this question but if anyone knows it'd be very helpful.
How is it that I may freely change GPO settings via the editor as opposed to making a change to the registry via a C++ program or command line?
If I wanted to disable the Properties option from the Recycle Bin context menu I can do that if I open up the Local Group Policy Editor and goto "Local Computer Policy > User Configuration > Administrative Templates > Desktop > Remove Properties from the Recycle Bin context menu", enable the policy, which sets a value under the key, "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", with the name NoPropertiesRecycleBin and a value of 1. And everything works fine.
Now let's say I directly modify/create/access this key, say from a C++ program, or even the command line, why do I get an an Access Denied Error?
Submitted July 16, 2017 at 04:52PM by SADISTICBLUE
via reddit http://ift.tt/2t5FHV2