Change ACL in the registry

Hi, everyone has to change an ACL ones in a time. This time it was in the registry. Let’s start.

Check if the PSdrive exists:

Name                 Used (GB)          Free (GB)           Provider              Root
—-                      ———                ———                ——–                 —-
A                                                                                FileSystem              A:\
Alias                                                                          Alias
C                         61.19                  138.71                FileSystem              C:\
cert                                                                            Certificate              \
D                                                                                FileSystem              D:\
Env                                                                             Environment
Function                                                                    Function
HKCU                                                                         Registry              HKEY_CURRENT_USER
HKLM                                                                        Registry              HKEY_LOCAL_MACHINE
Variable                                                                    Variable
WSMan                                                                     WSMan

In my case I also had to change a key in the HKEY_CLASSES_ROOT. So I created a new drive:

I do not want that the BUILTIN\users group has access to certain keys. How do we change that:

https://msdn.microsoft.com/en-us/library/system.security.accesscontrol.registryrights(v=vs.110).aspx

About the Author

Sander

No Comments

Comments are closed.