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
Login
Notify of
Please login to comment
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Sponsors

wpDiscuz