Click to See Complete Forum and Search --> : Forcing Windows Logon


msanford
January 13th, 2004, 01:16 PM
I am creating a program for our production team that will install everything that they need with out them having to manually do it. The problem that I have is that everytime I need to reboot someone has to log back on for the installer to continue. Does anybody know a way to have windows automatically log on given a username and password???

j0nas
January 13th, 2004, 03:17 PM
On Windows NT/2000/XP you have something called automatic logon (handled by the Windows GINA module). Maybe you can use that feature to solve your problem---I really don't know.

You need to enable automatic logon by setting some registry values... See this MSDN link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/msgina_dll_features.asp

Hope it helps,
Jonas

msanford
January 13th, 2004, 04:19 PM
Thank you for your response. Your link led me the exact answer.

It is simplier than the Gina explanations on thier site though:

set
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon to 1

then set

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName

and

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword

to the correct values it walla it works.