Home site EPFL LoginThis site is in french only !
> windows.epfl.ch

Home Page

Ouvrir automatiquement une session au démarrage
  

Il y deux solutions possibles :

a)  La machine n'est PAS dans un domaine :

  1. Dans le panneau de configuration, lancer "Utilisateurs et Mots de passe" (users and passwords)
  2. Désactiver la case à cocher "Les utilisateurs doivent entrer un nom et un mot de passe pour utiliser cet ordinateur" (Users must enter a user name and password to use this computer)
    NB : Cette option n'apparait pas si la machine fait partie d'un domaine.
  3. Cliquer sur l'onglet "Avancé" (Advanced)
  4. Désactiver la case à cocher "Nécessite un Ctrl-Alt-Del avant d'entrer un mot de passe" (Require users to press Ctrl-Alt-Del before logging)

b)  La machine est dans un domaine :

  1. Lancer Regedit.exe
  2. Aller dans la branche :
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  3. Mettre à jour les valeurs suivantes, de type chaîne (REG_SZ) :
    a) DefaultDomaineName => Nom du domaine
    b) DefaultUserName => Nom de l'utilisateur
  4. Créer les valeurs suivante, de type chaîne (REG_SZ) :
    a) DefaultPassword => Mot de passe
    b) AutoAdminLogon =>1

ATTENTION :

  • Avec cette méthode, le mot de passe est stocké EN CLAIR dans la base de registre !!!
  • Vous devez être administrateur local pour effectuer cette modification.
  • Si vous ne spécifiez pas de mot de passe, la valeur "AutoAdminLogon" passera à 0 automatiquement au prochain redémarrage.

 

N'utiliser cette procédure que sur une machine qui n'est pas en libre accès et n'utilisez pas un username/password ayant des droits de domaine (i.e. Domain Admin) ou correspondant à un utilisateur réel.

 

 

J'ai copié ici encore cet article sur ce sujet, surtout intéressant pour le forceautologon de la fin... (zuzu)

Microsoft Knowledge Base Article - 315231

How to Enable Automatic Logon in Windows

The information in this article applies to:
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Microsoft Windows XP 64-Bit Edition
This article was previously published under Q315231
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SUMMARY

This article describes how to configure Windows to automate the logon process by storing your password and other pertinent information in the registry database. This feature allows other users to start your computer and use the account that you establish to automatically log on.

IMPORTANT: If you enable autologon, using Windows XP becomes more convenient. However, using this feature can pose a security risk.

MORE INFORMATION

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

If you set a computer for automatic logon, anyone who can physically gain access to the computer can also gain access to everything that is on the computer, including any network or networks that the computer is connected to. In addition, if you enable automatic logon, the password is stored in the registry in plain text. The specific registry key that stores this value is remotely readable by the Authenticated Users group. As a result, using this setting is appropriate only if the computer is physically secured and if you ensure that untrusted users cannot remotely see the registry.

Use Registry Editor (Regedit.exe) to add your logon information:
  1. Click Start, click Run, type regedit,and then click OK to start Registry Editor.
  2. Locate the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

  3. Using your account name and password, double-click the DefaultUserName entry, type your user name, and then click OK.
  4. Double-click the DefaultPassword entry, type your password under the value data box, and then click OK.

    If there is no DefaultPassword value, follow these steps to create the value:
    1. On the Registry Editor menu, click Edit, click New, and then click String Value.
    2. Type DefaultPassword as the value name, and then press ENTER.
    3. Double-click the newly created key, and then type your password in the Value Data box.
    If no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon key from 1 (true) to 0 (false) to disable the AutoAdminLogon feature.

  5. Double-click the AutoAdminLogon entry, type 1 in the Value Data box, and then click OK.

    If there is no AutoAdminLogon entry, follow these steps to create the entry:
    1. On the Registry Editor menu, click Edit, click New, and then click String Value.
    2. Type AutoAdminLogon as the value name, and then press ENTER.
    3. Double-click the newly created key, and then type 1 in the Value Data box.
  6. Quit Registry Editor.
  7. Click Start, click Restart, and then click OK.
  8. After your computer restarts and Windows starts, you can log on automatically.
If you want to bypass the automatic logon to log on as a different user, hold down the SHIFT key after you log off or after Windows restarts. Note that this procedure applies only to the first logon. To enforce this setting for future logoffs, the administrator must set the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

Value:ForceAutoLogon
Type: REG_SZ
Data: 1

You can also use the following steps to enable automatic logon without editing the registry in Windows XP Home Edition and Windows XP Professional (not joined to a domain):
  1. Click Start, and then click Run.
  2. In the Open box, type control userpasswords2, and then click OK.
  3. In the dialog box that appears, clear the Users must enter a user name and password to use this computer check box, and then click OK.

 

 

 


Article N° 29 du 01.07.2003 21:33:01 par Thierry Charles -- Permalink : http://windows.epfl.ch/?article=29
Mentions légales     Signaler un problème
© 2001-2021 EPFL, EPFL-EXAPP, T. Charles, tous droits réservés.