I am trying to add a Value into this path but It is giving an Exception:
UnauthorizedAccessException was unhandled.
My snippet
private void btnStart_Click(object sender, EventArgs e)
{
RegistryKey Localuser= Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon");
Localuser.SetValue("DefaultPassword","Password35");
}