Is there a 100% guaranteed way to auto-login a user to a Windows 7 machine?

Herman

Well-known member
Joined
Oct 18, 2011
Messages
883
Location
Montreal, QC, CA
Programming Experience
10+
I know this is not directly VB-related, but it is indirectly.

I have a bank of 45 virtual machines on 10 servers. Some of these machines are Windows XP SP3, some are Windows 7 SP1. On all of those machine I use the good old auto-login method I never had a problem with until Windows 7:

VB.NET:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="MyUsername"
"DefaultPassword"="MyPassword"

The reason I need the machines to log on, is that they are running an automated testing suite.

The problem I have is that the Win7 machines usually log on, but sometimes when a server is particularily loaded, the auto-login fails somehow, and the VM is left stuck at the password prompt until someone checks on them and manually logs in. This NEVER has happened on any of the WinXP VMs. These VMs reboot often, so manually keeping an eye on 45 VMs all day long is not a solution.

My question: is there a way, through for example a custom system service interacting directly with WinLogon, to ensure that the machine is logged on automatically 100% of the time?
 
Back
Top