changing registry permission

T

Trups

Has any one know how can I change registry permission
programmatically. I tried regini.exe bit it is changing permission
for that particular folder or key. I want to apply that permission
change for complete tree.
 
H

Herfried K. Wagner [MVP]

Trups said:
Has any one know how can I change registry permission
programmatically. I tried regini.exe bit it is changing permission
for that particular folder or key. I want to apply that permission
change for complete tree.

I don't know if there is a way to change the permission for a whole tree,
but you can change the permission of certain keys using
'RegistryKey.SetAccessControl'. You may want to use
'Microsoft.Win32.Registry' to loop through parts of the registry in order to
apply the permissions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top