Saturday, July 20, 2013

Windows - Auto Logon

In order to perform auto-logon in Windows
1. Create a batch file with the following content

set autologon_username=
set autologon_password=
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon /t REG_SZ /d 1
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /t REG_SZ /d %autologon_username%
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /t REG_SZ /d %autologon_password%

2. Execute the batch file in an elevated mode
On rebooting the machine, you should be able to logon automatically to the user account specified with .
Note:Revealing password in plain text is a bad idea. Use this feature cautiously because you are exposing the plain text password.

No comments:

Post a Comment