SessionCreator returns exitcode: 7 Failed to create user session

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.

“C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\SessionCreator.exe” RunTest /Username:“<UserName>” /Password:“” /ProjectPath:“<ProjectSuite>.pjs” /ScreenResolution:1920*1080 /Timeout:9000 /project:“”

I still cant get the testrun to start.

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

Originally posted by MW_Didata on January 15, 2026

The issue only happens when the PC is locked. If I start the task while logged in the testrun does start.

Originally posted by rraghvani on January 15, 2026

Hi MW_Didata​ as mentioned in Running Tests on Locked Computers,

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

Originally posted by MW_Didata on January 15, 2026

Hello rraghvani​ What do you mean?

The testrun does use the GUI, Taskscheduler starts a C# program (Or batch) and that starts the testrun with SessionCreator.exe.

Sessioncreator should create a session on the locked pc where TestExecute can preform the tests.

This worked for atleast the past 2 years, but suddenly I get back Exitcode 7 while I changed nothing.

Originally posted by rraghvani on January 15, 2026

I have a VM which has TestExecute installed, and a PowerShell script, which has the following command, called by Task Scheduler at a given time.

& 'C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\SessionCreator.exe' RunTest /UserName:TestUser1 /password:'testuser1' /UseActiveSession /ScreenResolution:"1920*1080" /ProjectPath:"C:\Sandbox\TestComplete\ALS\ALS.pjs" /ExportLog:"C:\Sandbox\Log\TC_Automation_$tc_timestamp\index.html" /ExportSummary:"$summary_report" | Out-Null

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 MW_Didata on January 15, 2026

The PC has 2 users, 1 is the admin account of my org, and the other is the user account.
The user account is also an administator on the machine.

When checking Task manager only the 2nd user is shown, that is the user that should start the task.

Both machines use the latest Win11 Pro 25H2.

In taskschedular the options “Run with highest privileges” and “Run whether use is logged on or not” are both enabled. (Same as the other machine)

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:

  1. Compare rsop.msc or gpresult /h outputs
  2. Check secpol.msc → User Rights Assignment
  3. Verify Credential Guard / LSA status
  4. Run query user at task time
  5. Export & diff Task Scheduler task XML
  6. 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.

:robot: AI-assisted response
:+1: Found it helpful? Click Like
:white_check_mark: Issue resolved? Click Mark as Solution

Originally posted by rraghvani on January 16, 2026

Is your schedule configured to “Run whether user is logged on or not”? And is the password correct for the user account?

Originally posted by MW_Didata on January 20, 2026

Sorry for the late reply,

Yes the checkbox ‘Run whether user is logged in or not’ is true,
also checkbox ‘Run with highest privileges’ is true.

I have confirmed the task starts when logged off.

So far the only thing I can think of is a windows update broke something and now it no longer works.

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:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
add these keys:
AutoAdminLogon 1
DefaultUserName {Your Username}
DefaultPassword {Your Password}
DefaultDomainName {Your PCs domain name}

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.

Originally posted by rraghvani on February 03, 2026

Which is what I suspected and mentioned, with regards to active session.

It’s a Windows Security feature, and something SmartBear can not fix or get around.

Originally posted by suzyng on March 02, 2026

I have the same issue. I’m running session creator from jenkins job. does anyone has any idea how to fix this?

Originally posted by MW_Didata on March 02, 2026

I was not able to find a reasonable fix other then having a session already exists when the tests start.

Originally posted by Michael_B on May 21, 2026

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.

Originally posted by Michael_B on June 16, 2026

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. :-\