I am trying to write to the windows 8 registry using the following code it appears to have written but looking at reg edit it hasn't changed and it doesn't do what it is intended to. In windows 8 if you change the Shell Key from explorer to select,explorer the windows is supposed to boot into the desktop. I am stuck with windows 8. I do get the msgbox(worked select,explorer)If I manually set the key in regedit it works however I don't want to have to do that. and I am logged in as administrator. any ideas
VB.NET:
Try
Dim key As Microsoft.Win32.RegistryKey
key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon", True)
key.SetValue("Shell", "select,explorer.exe")
key.Close()
ReadKey is a function in a module the message box does show on completion
MsgBox("worked " & ReadKey("Shell"))
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Last edited: