Windows 98 AutoLogon does not work reliably with TweakUI 1.33
Symtom: On a fast computer, the Windows AutoLogon feature is instable. It sometimes works and sometimes does not. If it doesn't work, the logon password prompt is displayed and nothing happens.
Software: Windows 98 or ME and Microsoft TweakUI 1.33 (with option "Log on automatically at system startup" set).
Cause: The TweakLogon program sometimes runs too fast and completes before the logon dialog is displayed.
Solution: Use a VBScript program to call TweakLogon with a short delay.
The following VBScript program can be stored e.g. in c:\windows\tweaklogon.vbs:
Option Explicit
Wscript.Sleep 200
Dim Shell: Set Shell = WScript.CreateObject("WScript.Shell")
Shell.Run "RUNDLL32.EXE TWEAKUI.CPL,TweakLogon"
The registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices\Tweak UI" must be changed to call this VBScript program instead of rundll32.exe:
wscript.exe /nologo c:\windows\tweaklogon.vbs
Note: If you get the error message "Object doesn't support this property or method: 'Wscript.Sleep' " or another VBScript error message, download and install the newest "Microsoft Windows Script" software from www.microsoft.com/scripting.
Author: Christian d'Heureuse (chdh@inventec.ch, www.source-code.biz)
Index