tfgeorge
asked on
make a user auto logon
The following script adds the user and password correctly but does not make the user autologon like I would like to. How do I fix this script so that the user will auto logon and not require a password?
@echo off
net user user P@ssw0rd /add
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /d "P@ssw0rd" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUsername" /d "user" /f
ASKER
Need it scripted bud. I know how to make it happen through the UI
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect John!
ASKER
excellent
http://www.sevenforums.com/tutorials/377-log-automatically-startup.html