Setup Foxtrot to Run While RDP Connection is Closed




  • Avatar
    James Brammer

    This is great thank you! I have been fighting with this for a while running Foxtrot on a VM.

    You can actually fix the resolution with a custom powershell function at the same time.

    I just did some testing and using a Windows Task Scheduler job set to "Run with highest privileges" and this script is doing both. Checked using a console VNC connection waiting to be allowed to take over from RDP when tscon does its thing.

    #Begin powershell script

    #copy the function from
    # and paste it in right here

    #work the tscon.exe command by calling it in cmd.exe (but use single %s because the cmd call is not batch in this case)
    & cmd.exe --% /C "for /f "skip=1 tokens=3" %s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %s /dest:console)"

    #give tscon.exe a moment to work
    sleep 5

    #call the function declared at the top
    Set-ScreenResolution -Width 1920 -Height 1080
    Comment actions Permalink
  • Avatar
    Mathias Balsløw

    James Brammer great input!

    What we are actually recommending to most clients is to use a managing server to manage and keep alive all their "bot" servers following the concepts presented on page two here:

    Shortly explained, the idea is that you remote from your:

    • PC --> Managing Server --> Bot Server 1/2/3/4/etc.

    Then, you can simply disconnect from PC --> Managing Server without interfering with the Managing Server --> Bot Server connection, meaning that the GUI will remain alive. Using the Remote Desktop Connection manager on the Managing Server also makes it easier and better to have an overview of multiple bots at once.

    Comment actions Permalink

Please sign in to leave a comment.