Open Remote Desktop cmd
The article illustrates five commonly-used methods to turn on Remote Desktop Connection in Windows 10 computer as below. Show Video guide on how to open Remote Desktop Connection in Windows 10: Way 1: Open it in Start Menu. Click the bottom-left Start button to display the menu, expand All apps, open Windows Accessories and tap Remote Desktop Connection. Way 2: Launch it by searching. Type remote in the search box on taskbar, and choose Remote Desktop Connection from the items. Way 3: Turn it on via Run. Press Windows+R to show Run, input mstsc and hit OK. Way 4: Open the app via CMD. Start Command Prompt, type mstsc.exe and press Enter. Way 5: Turn it on via Windows PowerShell. Access Windows PowerShell, input mstsc and click Enter. Related Articles:
Remote Desktop Protocol (RDP) sessions can have multiple instances with the same user account. This may be undesirable or misleading if access to the machine is primarily remote. Connection to the RDP session can be achieved through the command line, and constrained to the “console” session, which would be the locally accessible session.
Access to the Windows command line interface (CLI)
Acquire access to the Windows command line (cmd.exe). This can be done by pressing the Windows key and the r key on the keyboard, then by typing cmdand pressing enter. Next, type the following: mstsc /console /V:addressThis will start a Remote Desktop Protocol connection to the console session of the remote machine. The “address” field should be replaced with the address of the remote machine. The program launched is also known as Microsoft Terminal Server Connection. Once you launch the mstsc program with the correct address and switches as indicated above, you will be able to login with the desired account. This will be the account’s console session.
Type: mstsc /?for more information on command line switches for the mstsc program.
Remote Desktop Protocol (RDP) sessions can have multiple instances with the same user account. This may be undesirable or misleading if access to the machine is primarily remote. Connection to the RDP session can be achieved through the command line, and constrained to the “console” session, which would be the locally accessible session.
Access to the Windows command line interface (CLI)
Acquire access to the Windows command line (cmd.exe). This can be done by pressing the Windows key and the r key on the keyboard, then by typing cmdand pressing enter. Next, type the following: mstsc /console /V:addressThis will start a Remote Desktop Protocol connection to the console session of the remote machine. The “address” field should be replaced with the address of the remote machine. The program launched is also known as Microsoft Terminal Server Connection. Once you launch the mstsc program with the correct address and switches as indicated above, you will be able to login with the desired account. This will be the account’s console session.
Type: mstsc /?for more information on command line switches for the mstsc program. If you want to use the Remote Desktop feature without opening the Windows Settings panel, then you can enable Remote Desktop using Command Prompt or Windows PowerShell. If you have a remote desktop client on your mobile or another computer, you will be able to connect it and use your PC remotely. Remote Desktop is a well-known facility of Windows computers that lets you connect two computers or mobile so that an individual can access another computer remotely. You can fix some problems on the computer via mobile or do other jobs according to your requirements. You need a Remote Desktop client like Microsoft Remote Desktop or so on your mobile to connect two devices. It is possible to enable to disable Remote Desktop via Windows Settings. You need to head to System > Remote Desktop to access the option. However, let’s assume that the Windows Settings panel is not opening due to some reasons, and you need to turn on the Remote Desktop feature. Then you can use this method to start the Remote Desktop using the command line. Enable Remote Desktop using Command lineTo enable Remote Desktop using Command Prompt and Windows PowerShell, follow these steps-
The commands are not the same for Command Prompt and Windows PowerShell. 1] Enable RDP firewall using Command PromptTo get started, open the Command Prompt with administrator privilege. You can search for it in the Taskbar search box, and click the Run as administrator option that appears on your screen. After that, enter this following command and hit Enter: By default, the value of fDenyTSConnections is set to 1. This command will change the value to 0. Next, execute the following command: netsh advfirewall firewall set rule group="remote desktop" new enable=yesThis command will add and update three rules in the Firewall so that you can start using the Remote Desktop. 2] Enable RDP using Windows PowerShellYou need to open the Windows PowerShell with administrator privilege and enter the following command and hit Enter: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0This command will change the fDenyTSConnections value to 0. Now, you need to execute the following command to add rules in the Firewall: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"After that, you will be able to use Remote Desktop in Windows 10. In case you want to disable Remote Desktop using Command Prompt and Windows PowerShell, you need to enter these steps. Related: Remote Desktop option is greyed out. Disable Remote Desktop using Command Prompt or PowerShellTo disable Remote Desktop using Command Prompt and Windows PowerShell, follow these steps-
To know more, you need to read on. Disable Remote Desktop using Command PromptYou need to set the default value of fDenyTSConnections as 1. For that, use this command- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /fNow you need to remove rules from the Firewall. For that, use this command- netsh advfirewall firewall set rule group="remote desktop" new enable=NoDisable Remote Desktop using PowerShellYou need to change the value of fDenyTSConnections as 1. You can do that by using this command- Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 1The second command will let you remove the rules from the Firewall: Disable-NetFirewallRule -DisplayGroup "Remote Desktop"That’s all! I hope this simple tutorial will be helpful for you. |