Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User to automatically log on 1

Status
Not open for further replies.

Gaz1000

Technical User
May 28, 2003
12
0
0
GB
Is thre a vbscript which will allow a user to log on automatically without the Logon screen. Either by the 'Secure Boot Settings' in the "Users and Passwords" in the control panel, or another way?
 
'configure the autoadmin logon
WshShell.RegWrite "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon", "1", "REG_SZ"
WshShell.RegWrite "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName", "DomainName", "REG_SZ"
WshShell.RegWrite "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword", "password123", "REG_SZ"
WshShell.RegWrite "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName", "username", "REG_SZ
 
OK, Do I just save this as a .vbs file? and how can I reverse these settings?
 
you will need to create a WshShell object
to reverse the setting put the settings which were originally there back.

so you might want to RegRead the settings first, put this to a logfile or something then overwrite them
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top