How to Open Remote Desktop (RDP) in Full Screen with custom parameters from CMD

Configurare noua (How To)

Situatie

If you frequently use Remote Desktop connections, opening the mstsc GUI every time can be tedious. From Command Prompt you can launch a full RDP session with a pre-set resolution and port in a single command.

Solutie

Step 1 — Open Command Prompt as Administrator

Press Win + R, type cmd, then press Ctrl + Shift + Enter. Click “Yes” in the UAC prompt to grant administrator privileges.

Step 2 — Launch the connection with your desired parameters

Type the command below, replacing the IP address and port with your server’s details:

mstsc /v:192.168.1.50:3389 /f /w:1920 /h:1080

/v: — server IP address and port   |   /f — full screen mode   |   /w: and /h: — session resolution

Step 3 — Save the configuration as a reusable .rdp file

To avoid retyping the command every time, export the configuration:

mstsc /v:192.168.1.50 /f /edit my-office-server.rdp

The generated .rdp file can be opened later with a double-click, without typing any command.

Step 4 — Create a desktop shortcut for instant access

Right-click on the desktop → New → Shortcut. In the location field, enter the full path to the saved .rdp file. Next time, a double-click is all you need.

Step 5 — Verify the RDP port is not blocked before connecting

Open PowerShell and run:

Test-NetConnection -ComputerName 192.168.1.50 -Port 3389

If TcpTestSucceeded returns True, the port is reachable and the connection should work.

Tip: Add the /multimon parameter to your command if you work with multiple monitors — the RDP session will recognize all of them automatically.

Tip solutie

Permanent

Voteaza

(1 din 2 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?