Setup Foxtrot to Run While RDP Connection is Closed

Follow

Comments

2 comments

  • 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 https://gallery.technet.microsoft.com/ScriptCenter/2a631d72-206d-4036-a3f2-2e150f297515/
    # 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
    0
    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: https://support.foxtrotalliance.com/hc/en-us/article_attachments/360030253811/Machine_Setup_Instructions.pdf

    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.

    1
    Comment actions Permalink

Please sign in to leave a comment.