How can I set the number of times autologon executes?

A. By default, autologon will log on a defined user account each time the machine starts. However, in some circumstances, you might want automatic logon to occur only a defined number of times (e.g., unattended installations require autologon only once). To set the autologon count, perform the following steps:

  1. Start the registry editor (regedit.exe).
  2. Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon.
  3. From the Edit menu, select New, String value.
  4. Enter a name of AutoLogonCount, and press Enter.
  5. Double-click the new value, and enter the number of times you want autologon to occur.
  6. Close the registry editor.

Each time autologon occurs, the AutoLogonCount will decrement by one. After this value reaches 0, Windows will disable autologon and remove all registry values related to this setting.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.