Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
While in a RDP session Creo opens up using OpenGL graphics. This can hinder the performance over the connection and it is best to start Creo in the console session to avoid this. Here is a batch script that is working for us.
Use this script to launch Creo while connected via RDP. Upon execution the script will send the current session to the console and launch Creo. The user will need to restart RDP but then Creo will be running without using OpenGL graphics.
You may need to change the working and program directories to match your environment.
@echo off
call :sub_checkAdmin
set ActiveID=unknown
for /f "tokens=3-4" %%a in ('query session %username%') do @if "%%b"=="Active" set ActiveID=%%a
tscon %ActiveID% /dest:console
timeout /t 2 > nul
start "Creo" /D D:\ENGINEERING\WORKING "C:\Program Files\PTC\Creo 5.0.2.0\Parametric\bin\parametric.exe"
EXIT
:sub_checkAdmin
NET SESSION >nul 2>&1
IF %ERRORLEVEL% NEQ 0 (
ECHO.
ECHO ERROR: This script requires elevated privileges.
ECHO.
ECHO Right click the file and choose "Run as administrator"
ECHO.
GOTO END
)
exit /b
:END
timeout /t 10 > nul
EXIT