Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » Enable Automatic Logon via Windows Registry
  • windows 10 hert
    Windows Management Instrumentation Commands Scripts
  • Webp.net resizeimage 1
    Automate Infrastructure Deployments in the Cloud with Ansible and Azure Pipelines AWS/Azure/OpenShift
  • ACMP Defender Management
    How to Manage Microsoft Defender Antivirus with Argon ACMP Network | Monitoring
  • windows admin center banner 825x400 1
    How to install or update and uninstall extensions in Windows Admin Center Windows Server
  • windows 10 lock screen
    How to reset your lost or forgotten Windows 10 Password Windows
  • Remote Desktop 2 1
    How to install RDS via Quick Start Deployment: Install, Publish, Update, and Uninstall Remote Desktop Web Client Web Server
  • Featured image 1
    How and where to find your BitLocker recovery key on Windows Security | Vulnerability Scans and Assessment
  • image 63
    Protect Remote Desktop credentials with Windows Defender Remote Credential Guard or Restricted Admin Mode Windows

Enable Automatic Logon via Windows Registry

Posted on 18/01/202001/10/2024 Christian By Christian 6 Comments on Enable Automatic Logon via Windows Registry

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

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.

Enter the name

Enter the password by double-clicking on DefaultPassword

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.

5/5 - (1 vote)

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

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
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

  • control panel
    Enable or Disable Control Panel and Windows Settings App Windows
  • Allow and Disallow Simultaneous Connection to Domain and Non Domain network
    Allow and Disallow Simultaneous Connection to Domain and Non-Domain network Network | Monitoring
  • MBAM
    Fix MBAM Client Deployment is only supported on MBAM 2.5 SP1 Windows
  • banner 1
    How to Create Shared Folder in Windows Sandbox Virtualization
  • Featured image 2
    5 Steps to Fix Outlook continually prompts for passwords Windows
  • linkyourandriodtoyourpc
    Microsoft Phone Link: Connect Android to Windows 11 Windows

More Related Articles

control panel Enable or Disable Control Panel and Windows Settings App Windows
Allow and Disallow Simultaneous Connection to Domain and Non Domain network Allow and Disallow Simultaneous Connection to Domain and Non-Domain network Network | Monitoring
MBAM Fix MBAM Client Deployment is only supported on MBAM 2.5 SP1 Windows
banner 1 How to Create Shared Folder in Windows Sandbox Virtualization
Featured image 2 5 Steps to Fix Outlook continually prompts for passwords Windows
linkyourandriodtoyourpc Microsoft Phone Link: Connect Android to Windows 11 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

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • windows 10 hert
    Windows Management Instrumentation Commands Scripts
  • Webp.net resizeimage 1
    Automate Infrastructure Deployments in the Cloud with Ansible and Azure Pipelines AWS/Azure/OpenShift
  • ACMP Defender Management
    How to Manage Microsoft Defender Antivirus with Argon ACMP Network | Monitoring
  • windows admin center banner 825x400 1
    How to install or update and uninstall extensions in Windows Admin Center Windows Server
  • windows 10 lock screen
    How to reset your lost or forgotten Windows 10 Password Windows
  • Remote Desktop 2 1
    How to install RDS via Quick Start Deployment: Install, Publish, Update, and Uninstall Remote Desktop Web Client Web Server
  • Featured image 1
    How and where to find your BitLocker recovery key on Windows Security | Vulnerability Scans and Assessment
  • image 63
    Protect Remote Desktop credentials with Windows Defender Remote Credential Guard or Restricted Admin Mode 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,840 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

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

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.