How to do silent auto-login? [duplicate]

Solution 1:

  1. Run control userpasswords2 to setup auto-logon (by unchecking the box)
  2. Setup a short-cut in All Programs\Run or the Run registry key or use a sheduled task to run the command rundll32.exe user32.dll, LockWorkStation to lock your computer right after log-on.