This VBScript will enable auto logon to a Windows 2000 or Windows 2003 server, or a Windows 2000/XP workstation. Run this script directly on the server or workstation that you wish to have auto logon configured.
Save this code with a .vbs extension. Then, specify values for the following, (removing the brackets in the code):
'========================================== 'VBScript: enableAutoLogon.vbs = 'This VBScript updates the registry to = 'enable auto-logon. Modify the three = 'strings in brackets, under "Define = 'keys and values". = 'Courtesy of Jonathan Almquist = 'monsterjta @ tek-tips = '==========================================
Option Explicit '' 'Declarations' '' Dim objShell Dim RegLocAutoLogon Dim keyDefaultDomainName Dim valDefaultDomainName Dim keyDefaultUserName Dim valDefaultUserName Dim keyDisableCAD Dim valDisableCAD Dim keyAutoAdminLogon Dim valAutoAdminLogon Dim keyForceAutoLogon Dim valForceAutoLogon Dim keyDefaultPassword Dim valDefaultPassword