Skip navigation

JSI Tip 4222. How can cause AutoLogon to occur only n times?

When you configure AutoLogon, it occurs each time you restart or logon.

If you wish AutoLogon to occurs only n times:

1. Use the registry editor to navigate to:

        HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon.

2. Add a value name of AutoLogonCount, a REG_DWORD data type, and set the data value to n, the number of times, using the Decimal Radix.

Each time you AutoLogon, following a restart, the value of AutoLogonCount is decremented.

On the restart after AutoLogonCount has been set to 0, it is removed from the registry and AutoAdminLogon is set to 0.

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.