Originally posted by MW_Didata on January 15, 2026
I currently have an issue on only 1 of my test machines where the testrun never starts and the exitcode is 7 with the message “Failed to create user session”
This machine runs 2 projects and has worked for about 2 years, now since January 6 it won’t start the testrun anymore.
To go back to the basics I even made a new bacthscript to start the run with only the minimal required code.
Windows taskscheduler starts the batch script, this does work, the batch script starts but when it comes time to start a new session sessioncreator returns code 7.
I’ve already created a support ticket,
But I’m hoping any of you might be able to help me further.
To me this seems like a windows setting that got changed somewhere in an update but i’m not sure.
The PC is running on the lastest Win11 25H2 update
Tests that do not interact with GUI can be run on locked computers. GUI tests or tests that simulate user actions cannot be run on locked computers, since when the computer is working in this mode, the user session is frozen (no windows can be shown) and the testing engine cannot simulate user actions
The VM has been set up to automatically login user ‘TestUser1’, and the VM is always unlocked (this is my active session). When I invoke the script to launch SessionCreator, it will spool up another session to run the automation scripts.
SessionCreator
The utility opens interactive user sessions required for the TestComplete interaction with your tested application GUI. If an interactive user session is not opened, the test engine will not be able to access the GUI, and your tests will fail.
Originally posted by MW_Didata on January 15, 2026
I run the tests on a physical PC. It has Testexecute and Testcomplete Installed.
I use pretty much the same command, but instead of the entire ProjectSuite it runs each project one after the other with the /Project flag.
but it no longer works. Like I stated above I even went back to a very basic batch script that should just start the testrun.
That also did not work.
I run other projects on another PC, that one still works. SessionCreator creates the session and testing begins, its only 1 machine that no longer works.
Originally posted by rraghvani on January 15, 2026
Use Task Manager, and check the number of Users on both machines? Do both machines have the same OS versions? Check your security options for your Task Schedular, on both machines too.
Originally posted by Hassan_Ballan on January 15, 2026
Even with the same org policy, two Windows 11 PCs can still behave differently. GPO defines intent, not the effective state at runtime, and SessionCreator is very sensitive to that state.
Common reasons one PC works while the other fails:
Policy application timing / drift
Updates, reboots, and logon state (locked vs unlocked) can leave machines with different effective settings.
Local Security Policy differences
Local overrides (secpol.msc) like Log on locally, Log on as a batch job, or hidden Deny entries can block interactive session creation on one PC only.
Credential Guard / LSA protection
These may be enabled by updates on one machine and not the other, breaking password-based session creation and causing exit code 7.
Session state at task start
If one PC has an active/unlocked session (or lingering session), SessionCreator can work. A fully locked console often fails on Win11 now.
Task Scheduler execution context
Tasks that look identical in the UI can differ in XML (logon type, session, SID).
Quick isolation steps:
Compare rsop.msc or gpresult /h outputs
Check secpol.msc → User Rights Assignment
Verify Credential Guard / LSA status
Run query user at task time
Export & diff Task Scheduler task XML
Test with auto-login + unlocked session
Bottom line:
Windows 11 has tightened interactive session rules. One machine likely crossed a security threshold the other hasn’t yet, which explains why SessionCreator fails only on the locked PC.
AI-assisted response Found it helpful? Click Like Issue resolved? Click Mark as Solution
Originally posted by rraghvani on January 20, 2026
There is a possibility that a Windows Update/Patch (or IT may have pushed an update/patch) may have broken something. It’s not the first time something like this has happened before! Have a look to see if there has been any recent updates, and try to uninstall it, to see if it works.
Also, can you try to include the parameter /UseActiveSession. Does that make any difference?
I’ve removed my previous setup -
The VM has been set up to automatically login user ‘TestUser1’, and the VM is always unlocked (this is my active session). When I invoke the script to launch SessionCreator, it will spool up another session to run the automation scripts.
User is no longer automatically logged in; there’s no existing users; and the VM is locked after reboot. I can now launch the task, for TestExecute to interact with the UI, providing the task has ‘Run whether user is logged on or not’. Great!
Originally posted by MW_Didata on February 03, 2026
Hello fellow testers,
I sort of solved this issue so I’ll let you know what I had to do to get my tests started again.
I have a batchscript in taskmanager that restarts my PC.
Then an other task that starts the tests planned about 15 min later.
Since the testrun can no longer start on when the pc is locked/ logged off,
I’ve added a registry edit that automatically logs on the user.
It can be added here:
When the PC restarts it automatically logs on so it has a active session that SessionCreator/ testexecute can use.
When the testing is done I’ve added a script that logs off the user.
Unfortunately my other PC now also has this issue. It can no longer create a user session.
2 of the 3 PCs i use now have this issue, I’ve disabled windows updates on the last working PC hoping it can still keep running as it is.
It seems all the vibecoding in windows 11 is breaking more and more everyday.
Please do let me know if anyone else starts having these issues. Maybe with more affected Smartbear can create a fix that solves this once and for all.
So session creator was able to create a session in the past, but now it cannot and you are required to store your credentials in clear text as a workaround? That seems like a pretty big drop in functionality for a paid product. Has anyone seen an article or official communication that says Session Creator is no longer functional? If it is due to MS changes, I get that, but please send us something official if some of your key functionality stopped working and you know you cannot fix it.
I hear you, but I’m sure they have worked around many MS updates over the past decade, some easier, some harder. If they know that Session Creator and related TestExecute features will never work again, it would be helpful if they would update their KBs accordingly or provide an ETA on the fix. Either way at this point. :-\