Figure 1: Monitor help for remote desktop connection
On most computers we use, the use of remote desktop connection is not easy to identify in the Start Menu. So to simplify it, you should use Start -> Run , then type mstsc and press Enter.
Some reasons should run mstsc from CLI
Sure you will like Remote Desktop because from a laptop or desktop system, you can connect to any of your PCs or servers in the infrastructure. This method really makes a lot of convenience.
If regularly use the command line options. One thing you will often have to do is save a RDP File , which is a configuration file that has been saved for an RDP connection - or the server or PC you usually connect to. Obviously, there may be multiple RDP files for the same server or PC if you want to have multiple saved configuration files.
The '.rdp' files are simply text files that you can create or edit with notepad. Here is an example of the content of the file '.rdp':
You can work inside notepad, but the most commonly used way to edit a .RDP file is to use the GUI Remote Desktop client because it provides more convenient Open, Save, and Save as options. for connection files:
You can also edit a file using the GUI but launch it from the command line using the / edit option for mstsc as follows:
mstsc / edit test.rdp
Some reasons for saving RDP files for later use:
Figure 4: Create multiple RDP server connections in Start Manu
Create Desktop Shortcut to run Remote Desktop
If you want to create a desktop shortcut to connect to a server. You can use the basic script of command line options or you can use those options and the .rdp connection file.
However, no matter how you use it, you need to enter the full command line in the desktop shortcut creation wizard.
Let's create a desktop shortcut:
To do that, you need to run the command:
mstsc.exe / v: exchange / admin / w: 800 / h: 600
And to create a desktop shortcut, you need to enter the above command into create shortcut location , as illustrated below:
If these basic options are not enough, you can use the .rdp file .
To do this, you need to run mstsc.exe , then customize your connection as you like. Such as adding audio, adjusting bandwidth, setting applications to be run, adjusting performance, connecting internal devices and resources such as printers. When you have done all these tasks, simply click the Save as button on the General tab. After saving, name the file as fileserver . Make sure you know the directory with this RDP file saved. You should also check your connection here to make sure it works as expected.
Once saved, you can close the Remote Desktop Connection window, create your desktop shortcut. When entering the desktop shortcut location, you need to enter the connection file after msctsc.exe. Be sure to enter the full instructions for the .rdp file. The .rdp file needs to specify the path or the desktop shortcut and the .rdp file need to be in the same directory. Therefore, the syntax of the statement will be as follows:
Mstsc.exe c: usersdaviddocumentsexchange.rdp
If you run mstsc with a connection file, then you don't need to create a desktop shortcut. All you have to do now is save the RDP connection settings file and then run this file. The file itself, when run, will connect to mstsc.exe so it will automatically initiate a connection to the specified server within the connection file.
One final tip - if you want to change the default settings that mstsc uses to connect when you want to run the file without any adjustments, edit the Default.rdp file in the home directory.
Conclude
Windows Remote Desktop is a powerful analysis tool and it's hard to imagine what would happen without this tool. In addition to making an easy connection to the server using RDP GUI, one asserts that once you've used RDP a few times, you'll want to use it more. Using command line options with mstsc.exe and creating desktop shortcuts to connect to certain servers is the next step you need to take.
David Davis