using (RegistryKey keys = Registry.LocalMachine.OpenSubKey(a_Path, RegistryKeyPermissionCheck.ReadWriteSubTree, RegistryRights.FullControl))
Requested registry access is not allowed.