Ask a questionAsk a question
 

AnswerAuto Logoin in Vista ?

  • Wednesday, October 04, 2006 2:05 AMEddie C Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Does anyone know how to config auto logo in for Vista?

    Because we need to run stress test and sometimes it will restart or suspend computer.

    But after restart or resume, Vista still needs user to select account and input passwords. We want to skip these steps.  We already tried many ways but always failed.

    1. control userpasswords2 ==> not work

    2. add regsitry ...DefaultPassword

                                 DefaultUserName

                                 DefaultDomainName

        ===> not work 

    Our Vista image  is  Ver. 5728

    Thanks in advance

Answers

All Replies

  • Wednesday, October 04, 2006 10:51 AMwolf777 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    If you have a single user without password, then he gets logged on automatically after restart. Or you can write and register a simple Credential Provider, which will do it for you even with many users and passwords. There are some MS samples, which can be easily modified, but it requires some coding and compiling of course.
  • Wednesday, October 04, 2006 11:27 AMEddie C Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Hi wolf777:

       I create an account without password and revised registry to enable auto logon as below. But this way just pass once.

    [ HKLM\SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon]

    AutoAdminLogon REG_SZ 1

    DefaultUserName REG_SZ  tester

    DefaultDomainName REG_SZ  PC

    DefaultPassword REG_SZ

    AutoLogonCount REG_DWORD 2

    And you mentioned, "There are some MS samples, which can be easily modified, but it requires some coding and compiling of course."

    Could you tell me how to get these samples ?

    Thanks in advance


     

  • Wednesday, October 04, 2006 4:06 PMwolf777 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I think that all those Winlogon keys which worked on xp are ignored on Vista. I remember that our testers used to perform some stress-test. They had single user without password and put a simple bat file in his Startup folder, containing something like "shutdown -r", which caused the machine to restart in around 30 seconds.

        The provider samples can be downloaded here: http://www.microsoft.com/downloads/details.aspx?FamilyID=1287ec56-77b4-48c4-8b58-35b7295d6c2c&DisplayLang=en

    There should be also some doc together with the sources.
  • Tuesday, October 17, 2006 7:11 AMwolf777 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Today down in our testlab, I learned that I was wrong - it is obviously possible to logon automatically on Vista using the registry keys. You have to open HKLM/Software/Microsoft/Windows NT/CurrentVersion/Winlogon and enter the following items: DefaultUserName, DefaultPassword and AutoAdminLogon (set to 1).

    It is strange that it doesn't work for you... The only difference from your configuration is that they do not have the DefaultDomainName item at all (the computer is not in domain anyways). They also do not specify the AutoLogonCount and they are able to make unlimited number of auto logons.
  • Wednesday, January 03, 2007 5:10 PMdanoliv Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Andrew Jennings from the shell team posted a power toy enabling autologon configuration from the command line. A blog post describing the toy and a link to download it are available here: http://shellrevealed.com/blogs/shellblog/archive/2006/10/11/A-useful-tool-for-setting-up-autologon.aspx
  • Wednesday, January 31, 2007 5:35 PMN1Bro Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
  • Wednesday, April 11, 2007 4:57 PMAnonymous11804 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This old tricky from windows xp works in vista too (tested in vista ultimate) :

    step 1: type this to run promp: control userpasswords2
    step 2: uncheck "Users must enter a user name and password to use this computer"
    step 3: press apply button and enter user name and password.
    step 4: press ok button and reboot computer test this and then be happy.
  • Wednesday, May 09, 2007 8:46 PMAglarond Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    hey it really works, thank you!
  • Sunday, June 03, 2007 10:24 PMlunatiq Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Perfect .. worked for me without problem. Thanks!
  • Tuesday, July 03, 2007 6:55 PMJoy Patra Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    On Windows Vista Ultimate 64-bit, I had to configure thie automatic logon in two steps:

    1) Click Start button and select Run. In the dialog, type 'control userpasswords2' and press Enter. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

    In the dialog that has come up, uncheck the box saying 'Users must enter a user name and password to use this computer'.

    Click Apply, another dialog comes up. Enter your default login username and password. Click OK.

    Click OK again.

    2) Click Start button and select Run. In the dialog, type 'secpol.msc' and press Enter.

    In the window that has come up, on the left hand side, expand Local Policies, select Security Options.

    On the right hand side, double click the line saying "Interactive Logon: Do not require CTRL+ALT+DEL".

    In the dialog that has come up, click the radio button named Enabled, and click OK.

    Restart your machine.


  • Thursday, August 23, 2007 2:01 PMHEKY Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

     

    I´ve done the autologon in Vista with following entries in

    the registry

     

    Open the hive like XP

    HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

    delete the key AutoLogonCount

    add the keys Reg_SZ

    DefaultUserName

    DefaultPassword

    in my case I´ve added the key

    AutoAdminLogon in format REG_DWORD 1

     

    it worked fine until i set the value from AutoAdminLogon to 0

     

    regards helmut

  • Sunday, September 02, 2007 10:36 PMObmml Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    have a look here or here for possible solutions to your problem... 

  • Monday, September 10, 2007 4:25 PMRSergio Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
  • Sunday, February 08, 2009 4:35 PMMPNY Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Use netplwiz

     control userpasssword2 in XP's equivalent in Vista is netplwiz
  • Sunday, February 08, 2009 4:36 PMMPNY Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
      control userpasssword2 in XP's equivalent in Vista is netplwiz
  • Monday, June 29, 2009 2:55 PMLibraryMadeleine Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I've edited my registry in Vista Business 32 with the below.  The shift override to bypass Autologon would not work (not on our Vista or XP machines).
    I found I needed to add another string:
    HKEY_LocalMachine\Software\Microsoft\WindowsNT\CurrentVersion\WinLogon
    IgnoreShiftOverride = 1 enables or 0 disables

    I set this key to "0" and now can use the sift key upon startup to override autologon.  This works on the XP machines but NOT the Vistas.  Is there another registry edit required?
    Thanks fo any advice,

  • Thursday, August 06, 2009 1:35 AMTransmuteColony Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    As for me the simple method is by creating a blank password. Is you created a password before just simply change it to blank (empty the password field). Work for xp and vista.

    Good Day..
  • Wednesday, August 12, 2009 5:45 PMLibraryMadeleine Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm sorry but I don't understand your response, TransmuteColony.  How does changing the password to blank make it so that I can bypass the ForceAutoLogon?
    Here's specifically what I'm trying to do:
    1.  We have a bank of public computers here in the library
    2.  I have our sign-up software set to log off the computers after each session to ensure patron privacy
    3.  I am using the reg edit ForceAutoLogon to then automatically log the computers back on for the next patron session

    This works great except when I want to log in as administrator.  With XP I could put in a reg key String Value IgnoreShiftOverride=o and then upon start up I could hold the left shift key, bypass the autologon, and choose to login as Administrator.

    With Vista, even with this Ignore key the left shift does not bypass the autologon and I end up automatically logged in as the Public user.  The only way I have discovered so far to break this loop is to Remote Reg Edit to the computer, change the ForceAutoLogon to 0 and then restart the computer.  This is an incredible pain in my keister.

    Any thoughts?
    Thanks - Madeleine
  • Thursday, August 27, 2009 2:52 PMJale666 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm sorry but I don't understand your response, TransmuteColony.  How does changing the password to blank make it so that I can bypass the ForceAutoLogon?
    Here's specifically what I'm trying to do:
    1.  We have a bank of public computers here in the library
    2.  I have our sign-up software set to log off the computers after each session to ensure patron privacy
    3.  I am using the reg edit ForceAutoLogon to then automatically log the computers back on for the next patron session

    This works great except when I want to log in as administrator.  With XP I could put in a reg key String Value IgnoreShiftOverride=o and then upon start up I could hold the left shift key, bypass the autologon, and choose to login as Administrator.

    With Vista, even with this Ignore key the left shift does not bypass the autologon and I end up automatically logged in as the Public user.  The only way I have discovered so far to break this loop is to Remote Reg Edit to the computer, change the ForceAutoLogon to 0 and then restart the computer.  This is an incredible pain in my keister.

    Any thoughts?
    Thanks - Madeleine

    Just a thought Madeleine, Vista comes with the built in administrator account disabled by default, maybe if you enable this account in Administrative Tools - Computer Management - Local Users and Groups - Users, then the procedure that you describe above may work.
  • Thursday, September 03, 2009 6:19 PMLibraryMadeleine Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks but this is as the built-in-administrator account.  But good thought! 

    Anyone else?
  • Thursday, September 03, 2009 6:23 PMLibraryMadeleine Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    these were dead links