Can't run Scripts or Terminals with RunAs

Product: PowerShell Universal
Version: 5.0.16

Hi,
i try to run Scripts or a Terminal with a another User but nothing works.
If i start a Job i get this error in my logs.

I’m trying to monitor the processes to see if a powershell is started when I start the job but nothing happens here.

You can increase the timeout by setting the 'Job Handshake Timeout' setting in the Settings \ General \ Automation page.
If you are still experiencing issues, you may need to consider increasing the resources available on your system or take advantage of the Random Delay parameter for schedules to stagger jobs.
    at UniversalAutomation.Services.GrpcExecutionService.ExecuteScript(Job job, ExecutionEnvironment environment, ExecuteScriptRequest request, ExecutionCallback executionCallback) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\GrpcExecutionService.cs:line 113
   at UniversalAutomation.ExecutionService.ExecutePowerShell(Script script, IEnumerable`1 parameters, Job job, Schedule schedule, ExecutionCallback callback) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 813
   at UniversalAutomation.ExecutionService.TryExecute(Job job, Schedule schedule) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 389
   at UniversalAutomation.ExecutionService.TryExecute(Job job, Schedule schedule) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 489
   at UniversalAutomation.ExecutionService.Execute(Int64 jobId, Nullable`1 scheduleId) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 197 System.Exception
2024-11-27 14:56:03.162 +01:00 [DBG][Hangfire.Server.ServerHeartbeatProcess] Server sbs01psu01:6580:297cff4d heartbeat successfully sent

and if i try to start a terminal i get this error

An error occured. Failed to connect to terminal. Process exited.
at PowerShellUniversal.Services.Terminals.TerminalManager.StartAsync(Terminal terminal, Identity identity) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\TerminalManager.cs:line 66 at PowerShellUniversal.StartTerminalButton.OpenTerminal() in C:\actions-runner\_work\universal\universal\src\Universal.Server\Shared\Automation\StartTerminalButton.razor:line 19 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at AntDesign.Button.HandleOnClick(MouseEventArgs args) at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

the user what i try is a Local Admin and have rights to “Log on as a batch job”