Advertisement

You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Start Blender when running Remote Desktop (Windows)

4

Blender users are often struggling with using Blender over a remote desktop connection, because [Blender will complain about the lack of hardware acceleration](https://blenderartists.org/t/remote-desktop-with-blender-installed/1102978). Here's a tip that helps you disconnect, fire up Blender remotely and then reconnect.

Martin Olanders writes:

Hi.
Have you also had trouble starting Blender with Remote Desktop. I have now found a solution that enables you to start Blender using a bat file when you are connected with Remote Desktop.

  1. Create a .bat file on your desktop
  2. Open the .bat file for editing
  3. Add a command to end your Remote Desktop session. "tscon 1 / dest: console"
  4. Add command that starts Blender from the selected folder "Call C: Blender Blender-2.79b-windows64 blender.exe" In this case Blender 2.79 from C:
  5. Save the file.

When you now connect Remote Desktop, start the bat file by right-clicking on it and select "Run as adminstrator". What happens is that your Remote Desktop connection ends and Blender is started on the current computer.

As your connection ends, you need to run Remote Desktop again.

Below the commands in the .bat file:

tscon 1 /dest:console

Call C:\Blender\blender-2.79b-windows64\blender.exe

Works also with Blender 2.8.
An assumption is also made that our current session has id 1.

When the script is run, the first line disconnect your remote PC and connect the session to the physical keyboard/video/mouse, then the second line will launch Blender.

About the Author

Martin Olanders

I have used Blender since 2007. Today I work as both employed and freelance using Blender. I have made pictures and animation for everything from farm machinery to the space industry. With a background as a designer, I have 18 years of experience from the development of different machine designs in both 2D and 3D cad tools. Since then I have also started doing renderings with Blender. Therefore, I have a unique knowledge from both construction and 3D visualization and also an understanding of the various problems encountered when these two worlds meet. Recently I have also started doing some addons in Blender for functions that I myself needed.

4 Comments

  1. Charles Ashley on

    I've done it without having to use a .bat file or anything real technical like that. Just remote desktop, my mobile device and voila.

  2. I'm using Chrome remote desktop to access my blender pc when outside the office and I'm very happy of how it works smoothly. Anyway, the same .bat trick should be possible with a few second timeout and a manual session termination

  3. Update; I have problem to shutdown the session, so then I use this:

    REM ** Throw out all existing sessions by resetting the listener session
    for /f %%i in ('qwinsta ^| findstr /C:">rdp-tcp#"') do set RDP_SESSION=%%i
    :: Strip the >
    set RDP_SESSION=%RDP_SESSION:>=%
    tscon %RDP_SESSION% /dest:console

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.

Advertisement

×