How can I force the 32-bit version of the remote desktop client to run on 64 bit Vista?
Normally it is quite easy to run the 32 bit version of a windows application from the command line, e.g. run window:
C:\Windows\SysWOW64\Notepad.exe
You can tell that the process is 32-bit by checking in task monitor\processes as it will have a *32 next to the filename.
However, the remote desktop client (mstsc.exe) does not want to play ball. It always runs the 64-bit version from C:\Windows\System32\mstsc.exe regardless of how I start it (run window, 32-bit cmd windows etc). I've even tried writing a 32-bit C++ program to create it (normally child processes are also 32-bit) but this did not work.
We need to run the 32-bit version because we have some custom dlls that are integrated with remote desktop and it is not possible to load a 32-bit dll in a 64-bit process.
Anyone know a way around this?
I've found a simple way to get by this.
http://www.davidmoore.info/2009/12/02/running-32-bit-remote-desktop-connection-on-windows-64-bit/
Solution: Rename the 64-bit mstsc.exe from System32 to prevent it from replacing the 32-bit process.
This is simple if you have rights to rename that file. If you’re on NTFS you may get a “You require permission from TrustedInstaller to make changes to this file” error.
To get by this error, you can take Ownership of the file and give yourself full permissions:
- Browse to %SystemRoot%\System32
- Right click mstsc.exe and choose Properties
- Go to the Security tab
- Click Advanced
- Go to the Owner tab
- Click Edit
- From the “Change owner to:” list, choose your user name
- Click OK
- Go to the Permissions tab
- Click Change Permissions…
- Click Add
- Enter your user name and click OK
- Tick the box in the Allow column for Full control
- Click OK
- Click OK
- A Windows Security warning will come up; click Yes to proceed
- Click OK
Now, you can rename the file mstsc.exe to something like mstsc.exe.bak
Then, you can launch mstsc.exe from %SystemRoot%\SysWOW64 and you will have 32-bit Remote Desktop Connection running.
I have found that the only way to force the mstsc to run at 32 bit is to run the depends (from sysinternals) and than open mstsc.exe from syswow64. After run it using the start profiling leaving the option as default. This will result in a mstsc*32 bit running. At now i haven't found any other way to to the same. Hoe this help Flavio
This is confusing about the 64bit versions of windows, but things located in SysWOW64 directory are the 32bit executables that run in 'WOW' (Windows on Windows). Things located in the System32 directory are 64bit binaries and don't have 32bit equivalents. The naming here is for compatibility reasons and is lame, but I'm sure some software works because of it that would otherwise not work.
You could try copying the mstsc.exe from a 32bit installation onto your 64bit machine and running it, but as far as I know 64bit windows only has a 64bit exe for mstsc and as such can not be forced to run in 32bit mode.
Use the below script as a .bat file, to force the start of mstsc.exe x32.
@echo off
set WinDir=
start C:\Windows\SysWow64\mstsc.exe