I want to get ownership for a registry key which the administrator has the
read permission only.
Application is running in elevated mode as administrator.
Tried
  RegistrySecurity security = regKey.GetAccessControl();
                     security.SetOwner(account);
This throws security exception.
This didnt work as the key is opened for reading and as it is locked it cant
be open with write permission.

For those arguing against taking ownership :
I was doing this as the last step for an activity.
Also please dont call it as a hack (seen in many forums) as the ownership is
changeable manually.
If you are arguing that bulk change is not possible on the case 'subinacl'
utility is doing it nicely so bulk is possible with a command to it.
I want the same functionality of the tool.
Thanks.
-- 

Santhosh V
http://techplex.wordpress.com


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to