praveenskg
2 years agoContributor
running github actions workflow using session creator
I have setup dedicated VDI machine to run our test scripts using Test Execute & session creator
I am facing issue when i am not logged into the VDI machine, i always get below error in github actions log
SessionCreator : Failed to create the user session.
The user 'domain\user' failed to log in to this host using Remote Desktop. Failed to establish an RDP connection with a remote computer
I am using github actions workflow and i have the command line script to kick off session creator and pass variables inside a PowerShell file.
Any work around to overcome the user session issue?
Use this instead,
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( %windir%\System32\tscon.exe %%s /dest:console )
Thanks, it worked.