I have managed to open up the Registry sub key root by adding two seperate permissions:
RegistrySecurity security = new RegistrySecurity();
//Non Propogated Rule
RegistryAccessRule rule = new RegistryAccessRule(LOGON\_USER\_NAME, RegistryRights.FullControl,InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow);
security.AddAccessRule(rule);
//Propogated Rule
rule = new RegistryAccessRule(LOGON\_USER\_NAME, RegistryRights.FullControl, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.InheritOnly, AccessControlType.Allow);
security.AddAccessRule(rule);
This works for the registry, but not for the directory permissions. Any thoughts? Regards Tris
------------------------------- Carrier Bags - 21st Century Tumbleweed.