I am trying to edit this registry key via the command line - been searching around for ages but can't find anything.
Really stuck at the moment so any help would be appreciated a lot. I do not mind using PowerShell or anything that calls a third party tool - just want to change it via the command line.
The reason is that local Administrators have Read only rights by default. I want to change this to Full Control. I can do it in the GUI in 2 seconds but command line is another matter.
HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder
There is an excellent rundown of how to do it in PowerShell here.
Essentially, you can use
Get-Acl
andSet-Acl
in PowerShell like you would for any other path.Does RegIni.exe meet your needs? You can write a RegIni script that changes the permissions, and then call RegIni with the script as a parameter.
For example, if you wanted only administrators to have full access to that key, the script would look like this:
Though presumably you would also want to grant the system access to the key, and perhaps read-only access to everyone else, in which case the security suffix would be
You can find the security suffix numbers in this table:
And it goes without saying that you should have a good backup before playing with this for the first time, and maybe practice on a dummy registry key to avoid any unfortunate accidents.