Rasmus Haslund

Virtualize everything!

  • LinkedIn
  • RSS
  • Twitter
  • YouTube
  • Home
  • Videos
  • Practice Exams
    • VMCE practice exam – Veeam Certified Engineer
  • EqualLogic
  • Veeam
  • VMware
  • About

Force automatic logon after users logs off

2018-11-14 by Rasmus Haslund Leave a Comment

While building a lab environment for training purposes, I utilized the registry keys AutoAdminLogon, DefaultDomainName, DefaultUserName, and DefaultPassword to ensure a user was automatically logged in after the server was powered on/rebooted. Due to changes in the software running in the lab, a reboot was no longer required after installation, but a logoff was now required instead. Since I didn’t want users to press CTRL+ALT+DEL to log in through a remote session I decided to try and see if I could force an automatic login when the user (or the software in this case) triggers a user logoff.

Fortunately, I discovered the ForceAutoLogon string key, created it and set its value to 1. This works perfectly for my use case! All the keys mentioned are to be created in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ registry location.

Here is what it looks like in the registry editor:

ForceAutoLogon registry key

Filed Under: Windows

Subscribe
Connect with
Login
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Notify of
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Please login to comment
0 Comments
Inline Feedbacks
View all comments

Sponsors

wpDiscuz