Windows auto logon configuration - Batch file


#1

Configure Auto admin logon - Use the batch file which is given below.

Autlogon configuration is very much useful to give access to DCS operator .

save the following command in a notepad file and change the extension to .bat

@echo off
set newline=^& echo.

set /p a=“Default Domain Name”
echo Enter domain name
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultDomainName /t REG_SZ /d %a% /f

set /p b=“Default User Name”
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultUserName /t REG_SZ /d %b% /f

set /p c=“Default password”
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultPassword /t REG_SZ /d %c% /f

REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d 1 /f

pause