Link to home
Start Free TrialLog in
Avatar of tfgeorge
tfgeorgeFlag for United States of America

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

Open in new window

Avatar of AustinComputerLabs
AustinComputerLabs
Flag of United States of America image

Avatar of tfgeorge

ASKER

Need it scripted bud. I know how to make it happen through the UI
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect John!
excellent