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.
- Create a .bat file on your desktop
- Open the .bat file for editing
- Add a command to end your Remote Desktop session. "tscon 1 / dest: console"
- 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:
- 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.
4 Comments
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.
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
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
It works, you magnificent human being! Thanks so much for sharing. God bless you.