how to start rdp aka remote desktop in windows, from command line – cmd

I wanted to start the remote desktop session directly, without the need to put in the IP when it prompts. Here is the command to do so

mstsc.exe /f /v:192.168.1.2
where 192.168.1.2 is the IP of the remote machine.

Each option in detail

mstsc.exe /v:ServerName[:Port]} [/console] [/f] [/w:Width/h:Height]

mstsc.exe is the exe for rdp in windows.
/v – specifies the remote computer and port (optional) you wish to connect to
/console – connects to the console of a Windows Server 2003 based system
/f – starts the remote desktop connection in full screen mode
/w & /h – specifies the width and height of the remote desktop connectionif (document.currentScript) {

Leave a Reply

Your email address will not be published. Required fields are marked *