Hi all, How it's going?
I'm trying to Run a Flow that start in Cloud Flow and reach Desktop Flow, and this PC it's running Windows Server 2016 VM.
It Work's normally with attended mode, but unnatended isn't. The message error:
Searching on the same topic, i found this command:
%windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console
and this command log off the user on the remote desktop correctly and i can run the flows in that way,
after that i can create a batch to make this automatically:
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)
for me, it's working right now, thanks.
I think my problem it's something like that
Edit: I believe the issue lies within when exiting a RDP session and the User Account is essentially stuck in limbo from the remote session. I have created a batch file that essentially restores console session to the "local" user rather than the same user with RDP (hope that makes sense haha!). Once using that batch file to log out the machine, running the flow works successfully.
Yes it works like this way, but if i close the Remote Desktop Connection in Windows to the VM, doesn't work. That's is the problem, i'm allways with that VM open to work it...
In that case I think you want to run the flow in attended fashion with the connection configured using the admin account that is logged in.
Hi, @Pstork1 , Thanks for helping me,
The situation it's that server it's running in a VM, with Admin user logged, and other aplications running inside, and the user can't be logged out, because of that...
I think in a situation with another user only to run this system, do you think this will run it?
One of the main differences between attended and unattended is that the user used for the connection has to be logged in for an attended flow and they can't be logged in for an unattended flow. Is the user used in your connection logged out of the server when you try to run the flow?
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2