This will bomb as not accetpable. If you change it to currentuser if you
have admin success it shoudl proceed without problem.
Sub Test3()
Dim regKey As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.LocalMachine
Try
regKey.OpenSubKey("console",
Microsoft.Win32.RegistryKeyPermissionCheck.ReadWriteSubTree,
System.Security.AccessControl.RegistryRights.Delete).ToString()
Catch ex As Exception
MessageBox.Show("The specified access to the key was not
possible")
End Try
This will bomb as not accetpable. If you change it to currentuser if you
have admin success it shoudl proceed without problem.
Sub Test3()
Dim regKey As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.LocalMachine
Try
regKey.OpenSubKey("console",
Microsoft.Win32.RegistryKeyPermissionCheck.ReadWriteSubTree,
System.Security.AccessControl.RegistryRights.Delete).ToString()
Catch ex As Exception
MessageBox.Show("The specified access to the key was not
possible")
End Try
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.