none
Force Autologon directly without restart

    Question

  • Well, I already have asked this questions before but I'm having difficulties yet accepting that it cannot be done. There must be a “trick” somehow to get it done.  ..

    Ok, here is the case: I have created a boot menu for Windows 7 with 2 options: Normal start and Auto start.
    When a user boots the pc and selects “Normal” then Windows starts normally and goes to Ctrl+Alt+Del… 
    And when a user selects “Auto” I want the pc to logon automatically en goes to IE-kiosk mode. For that last "Auto" choice I created a well working GPO with vbs-start-script which checks the users choice (before login) and configure everything needed for Autologon in the registry . Autologon then works well however ONLY if I force the pc to reboot via that same start script. 
    My question is: how can I avoid the extra reboot after setting the needed registry settings? And can I force Windows to Autologon directly (without an extra reboot) after the user chooses for the Autologon boot option??
    Or is there any other possibility to achieve my goal?
    Or can I force winlogon.exe and/or logonui.exe somehow via the command line?
    Can I logon to windows via the command line and bypass the ctrl+alt+del act?
    Any idea?

    Many thanks in advance!


    • Edited by w7builder Sunday, June 08, 2014 7:15 PM
    Sunday, June 08, 2014 1:46 PM

Answers

  • Thanks Philippe ; Thanks Frank for your reaction.

    I'm aware of these possibilities.
    I think I found a solution for my problem by a third party tool called LogonExpert which contains a command-line tool (le.exe)  which can be used in a script/batch to autologon directly when needed without the need to reboot.
    I still find it strange that Microsoft does not offer a professional solution for such needs. Why can LogonExpert get it done and MS doesn’t? Well …

    Thanks all and best regards!

    Wednesday, June 11, 2014 5:35 AM

All replies

  • Additional Info: Procmon output: Winlogin.exe process enumerates the autologin registry keys before it processes new group policy. Both reading the autologin key and processing the group policy take place on the same PID, so no amount policy tinkering will make any difference. ...
    Tuesday, June 10, 2014 11:16 AM
  • Hi,

    As far as I know, after setting the regirstry to turn on automatic logon feature, we need to restart the computer to logon automatically.

    Regarding turning on automatic logon, the following article can be referred to for more information.

    How to turn on automatic logon in Windows

    http://support.microsoft.com/kb/324737

    Best regards,

    Frank Shen

    Tuesday, June 10, 2014 3:26 PM
  • Hi, for the last part of your question , if you can *send* the username to the computer to simulating a login.

    The easy answer is no, but I know that some third part vendor do it (I have Citrix in mind). They needed to register a hook on the winlogon process and they simulate that part. I never seen a code exemple of that, but I know that exist, as most thin client I use can login to a remote computer that way. (as you enter your credential locally on the thin client, and it get redirected to the remote computer).


    Regards, Philippe

    Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )

    Answer an interesting question ? Create a wiki article about it!

    Wednesday, June 11, 2014 2:20 AM
  • Thanks Philippe ; Thanks Frank for your reaction.

    I'm aware of these possibilities.
    I think I found a solution for my problem by a third party tool called LogonExpert which contains a command-line tool (le.exe)  which can be used in a script/batch to autologon directly when needed without the need to reboot.
    I still find it strange that Microsoft does not offer a professional solution for such needs. Why can LogonExpert get it done and MS doesn’t? Well …

    Thanks all and best regards!

    Wednesday, June 11, 2014 5:35 AM