• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1960
  • Last Modified:

Where is Remote Desktop registered in the registry?

Does anyone know where Microsoft Remote Desktop 5.2 or 6.0 is registered in the registry for Windows XP?
I want to change the name, location, or both of the mstsc.exe file and update the registry for that change.
I have searched the registry for .rdp, Remote Desktop, and mstsc.exe but have not found anything specific to app name or location.
1 Solution

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStatiosn\RDP-Tcp

Or thereabouts :)

This is where I go when I need to change the port number that RD runs on - hopefully this helps!
Actually you don't need to do anything in registry, just delete/move mstsc.exe from %windir%\system32\dllcache and then rename %windir%\system32\mstsc.exe or move it where ever you like it will still work.

romatloAuthor Commented:
I have a corporate sponsored Remote Connection Client that is a "wrapper" around Microsoft Remote Deskop that has capability to log usage (and other features) to a server.  
This program depends on the functionality of MSRDP so it must not be disabled.  It checks the MSRDP registry registration for the appropriate file name to run MSRDP.

I want to some how not allow users to access and run Remote Desktop directly and bypass the corporate remote connection client.
Some suggestions are remove the deskop/start menu icons, remove Start/Run (so can't type mstsc.exe).  

I am just wondering if there is a way actually rename the mstsc.exe and change the registry registration to point to the new name, so that the user could not run the mstsc.exe.
One thing to note about my post is that you must make these changes quite quickly as Windows File Protection will replace the file.  You could use a batch something like

DEL %WINDIR%\System32\DllCache\mstsc.exe /Q
Ren %WINDIR%\System32\mstsc.exe remote.exe


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now