Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Enable Automatic Logon via Windows Registry

Posted on 18/01/202017/08/2026 Christian By Christian 6 Comments on Enable Automatic Logon via Windows Registry
  1. Home
  2. Windows
  3. Enable Automatic Logon via Windows Registry
Text on a blue background displaying 'Automatic Login' and 'Windows 10'.

The autologon feature is provided as a convenience. However, this feature may be a security risk. In this article, I will show you how to enable Automatic Logon via Windows Registry. Please see The different Windows Logon Types, how to fix “The sign-in method you are trying to use is not allowed: For more information, contact your network administrator“. Also see, how to Disable or Remove Kiosk Mode Via the Local Settings, and How to Create a React App with Vite.

If you set a computer for autologon. Anyone who can physically obtain access to the computer can gain access to all the computer’s contents, including any networks it is connected to.

Additionally, when autologon is turned on, the password is stored in the registry in plain text. The specific registry key that stores this value can be remotely read by the Authenticated Users group.

This setting is recommended only for cases in which the computer is physically secured. And you have been taken the steps to make sure that untrusted users cannot remotely access the registry.

Please see Enable Autologon and Autostart for user session, how to Disable or Enable Auto log on in Windows, and how to “Disable SQL Auto Close: Auto Close is enabled for both ePO and ePO Events Databases“.

Points to Note when implementing Auto Logon

To bypass the AutoAdminLogon process and to log on as a different user, press and hold the Shift key after you log off or after Windows restarts.

  1. This registry change does not work if the Logon Banner value is defined on the server either by a Group Policy object (GPO) or by a local policy. When the policy is changed so that it does not affect the computer, the autologon feature works as expected.
  2. When Exchange Active Sync (EAS) password restrictions are active, the autologon feature does not work. This behavior is by design. This behavior is caused by a change in Windows 8.1 and does not affect Windows 8 or earlier versions. To work around this behavior in Windows 8.1 and later versions, remove the EAS policies in Control Panel.
  3. An interactive console logon that has a different user on the server changes the DefaultUserName registry entry as the last logged-on user indicator. AutoAdminLogon relies on the DefaultUserName entry to match the user and password. Therefore, AutoAdminLogon may fail. You can configure a shutdown script to set the correct DefaultUserName. 

Configure your device to sign in automatically

You may want to set up an automatic logon for your kiosk device. When your kiosk device restarts, regardless of the cause such as from an update or power surge. You can configure the device to sign in manually or automatically for the Assigned Access account.

Kindly refer to these related guides: How to disable auto login in Windows, how to enable Automatic Logon on Windows 10, how to enable automatic logon on Windows 10 via the Registry, and how to setup Kiosk mode on Windows 10 with AD user Account.

Note: Make sure that Group Policy settings applied to the device do not prevent automatic sign-in. When deploying Multi-App Kiosk, you use the kiosk wizard in Windows Configuration Designer or XML in a provisioning package to configure your kiosk account to sign in automatically in the wizard or XML file.

Open registry, and navigate to the "HKEY_LOCAL_MACHINE"
- SOFTWARE
- Microsoft
- WindowsNT
On the CurrentVersionWinlogon
- Set the values for the following keys, and set the AutoAdminLogon: set value as 1
Screenshot of the Windows Registry Editor showing the Winlogon key, with an edit string window for the AutoAdminLogon entry and its value set to '1'.

DefaultUserName: set value as the account that you want signed in.

Screenshot of Windows Registry Editor showing the Winlogon key with the DefaultUserName value being edited to 'kiosktester'.

DefaultPassword: set value as the password for the account.

Note: If DefaultUserName and DefaultPassword aren’t there. Add them as New > String Value.

Enter the name

Input field displaying the text 'Defaultpassword' with a blinking cursor.

Enter the password by double-clicking on DefaultPassword

Screenshot of Windows Registry Editor displaying the Winlogon key, including string editing for DefaultPassword with a value of Test786.

DefaultDomainName: set value for a domain, only for domain accounts.

For local accounts

For local accounts, do not add this key. Close Registry Editor. The next time the computer restarts, the account will sign in automatically. Please see how to fix “Auto Logon Error “The username and password specified is not valid”, and “Error 1385: The user has not been granted the requested logon type at this time“

You can also configure automatic sign-in using the Autologon tool from Sysinternals as this ensures the password is encrypted in the registry. See the Auto Logon: Enable Automatic Logon on Windows 10 for these steps.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Tags:Auto Logon, Automatic Start, automaticstartup, Microsoft Windows, Windows 10, Windows 11

Post navigation

Previous Post: Replace a blue screen error with a blank screen for system errors
Next Post: Prerequisites for setting up a Single and Multi App Kiosk

Related Posts

  • google chrome logo 2
    Set Google as default: How to set a browser as default in Windows 10 Windows
  • command prompt powershell 670x335 1
    How to Start, Stop and Restart Windows Server Update WSUS Services via PowerShell and CMD Windows
  • GPO Blocked Downloads 3
    How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows
  • 5rgh65436
    New Windows 11 encryption features and security enhancements for Hybrid Work Security | Vulnerability Scans and Assessment
  • Update display driver
    How to Update Your AMD Radeon Display Adapter Driver Windows
  • Configure Multiple IP Addresses on a Single or Multiple Network Cards
    Configure Multiple IP Addresses on a Single or Multiple NICs Network | Monitoring

More Related Articles

maxresdefault How to stop Microsoft Edge from remembering your email ID Windows
update powershell in Windows Upgrade PowerShell Core Windows or Mac and Linux System Windows
screenshot 2020 03 14 at 10.13.38 How to Hide the Action Center Taskbar Icon In Windows 10 Windows
Screenshot 2020 08 07 at 21.09.01 Error 0x204: Unable to Connect to Remote PC [Part 2] Windows
Defender Antivirus Windows Defender Antivirus Management with Intune Anti-Virus Solution
windows 10 technical preview windows 10 logo microsoft 97543 1920x1080 Disable the sleep mode in Windows to never turn off the display Windows

Comments (6) on “Enable Automatic Logon via Windows Registry”

  1. Avatar photo Shad says:
    06/01/2021 at 3:39 AM

    Thank you very much. On LATEST Win10 (2020)
    One has to first add the AutoAdminLogon string and add ‘1’ as value
    AutoAdminLogon: set value as 1
    DefaultUserName: set value as the account that you want signed in.

    DefaultPassword: set value as the password for the account.
    Note: If DefaultUserName and DefaultPassword aren’t there,
    – Add them as New > String Value.

    Log in to Reply
    1. chris Christian says:
      06/01/2021 at 3:49 AM

      Dear Shad, I am glad you found this article very useful. Also, thank you very much for this input, I appreciate it a lot and I am sure other readers will benefit from this good work of yours.

      Log in to Reply
      1. Avatar photo asd says:
        16/07/2023 at 12:58 PM

        You spelled “Default” in “DefaultPassword” incorrectly.

      2. chris Christian says:
        16/07/2023 at 1:17 PM

        Spot on! Thank you for pointing this out. When next we wish to update this article, we will produce this scenario and update the images as well. Regardless, it will still work.

  2. Avatar photo ll4mat says:
    06/12/2024 at 2:04 PM

    I know this guide is a bit vintage… but seriously, DON’T DO THIS!

    Storing passwords in plain text in the registry? That’s like leaving your front door wide open with a neon sign that says, ‘Come in and steal my stuff.’ Big, big NO-NO.

    Please, for the love of all things secure, at least use Autologon from the Sysinternals suite. It’ll encrypt your credentials before they hit the registry, so your secrets stay… well, secret.

    Log in to Reply
    1. chris Christian says:
      06/12/2024 at 3:38 PM

      I agree with you. While it’s essential to acknowledge the security risks associated with hardcoding passwords in the registry for auto-logon, there are other vital security measures that can be implemented to mitigate potential threats. These include robust physical security to limit unauthorised access and active monitoring solutions to detect unusual activities on the system.

      In addition, using BIOS/UEFI passwords can significantly enhance protection by preventing unauthorised booting, ensuring that attackers can’t bypass security by modifying system configurations.

      Most times, this solution is not used for testing and we have discussed other ways using assigned access, SysInternals and FrontFace Lockdown Tool

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • image 129
    How to deploy Ansible AWX on centos 8 Linux
  • Missing ADML File
    Fix an appropriate resource file could not be found for LAPS Windows
  • screenshot 2020 04 27 at 17.34.38
    Remote Server Administration Tools: Install RSAT on Windows Windows Server
  • images
    Unable to connect to MSSQL Server after changing Server name Oracle/MSSQL/MySQL
  • Windows Server 2016 1
    All About Windows Server 2016 Windows Server
  • screenshot 2020 02 09 at 17.11.11
    How to uninstall a program via command prompt in Windows Windows
  • images
    How to fix you are not allowed to view this folder on SSRS: MBAM reports cannot be accessed because it could not load folder contents Windows Server
  • screenshot 2020 02 09 at 21.47.28
    How to find Computer Model and Serial Number Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.