Imports Microsoft.Win32
Public Class Form1
Dim regKey As RegistryKey
Dim regKey1 As RegistryKey
Dim regKey2 As RegistryKey
Dim regKey3 As RegistryKey
' Public Function
Public Function CreateSubKey(subkey As String, permissionCheck As Microsoft.Win32.RegistryKeyPermissionCheck) As Microsoft.Win32.RegistryKey
End Function
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
txtTimeandDATE.Text = Date.Now
End Sub
Public Sub Labs()
txtPass.Text = "Nazareth1"
regKey = Registry.LocalMachine.CreateSubKey("\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", True)
regKey.SetValue("AutoAdminLogon", "1")
regKey1 = Registry.LocalMachine.CreateSubKey("\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", True)
regKey1.SetValue("DefaultDomainName", "ONE")
regKey2 = Registry.LocalMachine.CreateSubKey("\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", True)
regKey2.SetValue("DefaultUserName", cmbUser.SelectedValue)
regKey3 = Registry.LocalMachine.CreateSubKey("\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", True)
regKey3.SetValue("DefaultPassword", txtPass.Text)
End Sub
please help thanks guys
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.