Forum Discussion

mfoster711's avatar
mfoster711
Regular Contributor
9 years ago

RebootAndContinue not working Windows 8 and 10

I am trying to use the RebootAndContinue method and it is not fully working on Windows 8 or Windows 10. It will reboot the computer but it does not log in. This is working on my Windows 7 computers.

 

All my test PCs are setup in a Workgroup, not a domain. All of them have a single user named "Admin1" that is setup as an Administrator on the PC. The PCs are already setup to automatically sign in with this user when they boot up.

 

I initially tried using RebootAndContinue without passing in the username or password and it did not work. I then added the username and password to the call and it works on Windows 7 but not 8 or 10.

 

Actually, it works the first time but not any time after that. I have a simple test that was looping multiple times and performing the RebootAndContinue each time. The first time I perform the RebootAndContinue it works but not any times after that on the Windows 8 or Windows 10. It fails to log in. If I manually enter the password the process will continue and TestComplete will open and continue my script.

 

The error I am getting is: "The call to the RebootAndContinue method failed.The method saves information to the  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon registry key. The user account, under which you are running your test, does not have permissions to save data to this key.To solve the problem, change the permissions. The easiest way to do this is to add the account to the Power Users or Administrators group on your computer. For complete information on this, see Windows documentation."

 

Why is this failing on Windows 8 and Windows 10 even though I am using a user that is setup as an admin?