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:
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.