Hello, i would like to modify this key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlateform\Activation NotificationDisabled Pass the value to 1 To try that, my soft drop and lauch the regkey this is the containt Windows Registry Editor Version 5.00 Code: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation] "NotificationDisabled"=dword:1 But it doesn't work :'( and if i lauch manualy the key, it work. Why ? Thanks
Hello, thanks for your help : Code: File.WriteAllText("C:\KeyName.reg", My.Resources.KeyNameInMyRessource)' Write my key on C: Process.Start("C:\KeyName.reg") ' Open my key
here is how i did it in my ahci changer app (this is an exerpt) Code: Dim autoshell = My.Computer.Registry.LocalMachine.OpenSubKey("System\CurrentControlSet\Services\msahci", True) '' Set the value to 0 autoshell.SetValue("Start", 0) autoshell.Close()
Simple method = Code: My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation", "NotificationDisabled", 1) I prefer an auto method, if 0 then will change to 1 and vice versa: Code: Try Dim Lm As RegistryKey = Registry.LocalMachine Dim Notification As RegistryKey = Lm.OpenSubKey("SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation", RegistryKeyPermissionCheck.ReadWriteSubTree, Security.AccessControl.RegistryRights.SetValue Or Security.AccessControl.RegistryRights.QueryValues) Dim Enabled As Nullable(Of Integer) = CType(Notification.GetValue("NotificationDisabled"), Nullable(Of Integer)) If Enabled <> 1 Then Notification.SetValue("NotificationDisabled", 1, RegistryValueKind.DWord) Else Notification.SetValue("NotificationDisabled", 0, RegistryValueKind.DWord) End If Catch ex As Exception MsgBox("Error: " & ex.Message) End Try
@stevemk14ebr and @Alphawaves Thanks for your help, your solutions work perfectly, the problem is that my Windows 7 was activated, so the notifications key wasn't can't modified ! Switch the post in solved Bye Bye !