Article ID: 142633
Article Last Modified on 11/1/2006
ARTICLE-ID: 136327
TITLE : How to Enable AutoLogon During an Automated Setup
>
set KeyPath = { +
{SOFTWARE, $(NoTitle), $(MaskAllAccess)}, +
{Microsoft, $(NoTitle), $(MaskAllAccess)}, +
{"Windows NT", $(NoTitle), $(MaskAllAccess)}, +
{CurrentVersion, $(NoTitle), $(MaskAllAccess)}, +
{"Windows", $(NoTitle), $(MaskAllAccess)}, +
}
set KeyValues = { +
{run, $(NoTitle), $(!REG_SZ), "runonce.bat"} +
}
shell "" CreateKey $(!REG_H_CUSER) $(KeyPath) $(KeyValues)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto end_MakeStartupEntry
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
goto end_MakeStartupEntry
else
CloseRegKey $($R1)
endif
\registry\machine
Software
Microsoft
Windows NT
CurrentVersion
Winlogon
AutoAdminLogon = REG_SZ 0
user:Software\Microsoft\Windows NT\CurrentVersion\Windows
run = REG_SZ
d1,RUNONCE.BAT d1,USERDEF.DEF d1,REGINI.EXE d1,AUTOLOG.INI
runonce.bat = dx,d7,,2,0,0 userdef.def = dx,d7,,2,0,0 regini.exe = dx,d7,,2,0,0 autolog.ini = dx,d7,,2,0,0
Additional query words: prodnt
Keywords: kbnetwork kbsetup KB142633