Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Connection to remote desktop service via command prompt!


It is easy to start a connection to the Remote Desktop Service via the command prompt with arguments on Windows 11, 10, ... and MS Server OS!


 
Contents:

1.) ... Simple example for a remote desktop connection
2.) ... Additional parameters / arguments for a remote desktop connection



See also: ►► ... Find  remote desktop connection Windows-10

1.) Simple example of a remote desktop connection

1. As always: ►► ... start the command prompt 

2. Enter the command with the appropriate parameters:
mstsc /v:081.266.142.124 /w: 1700 /h:800

Accessing the remote desktop via the command line is quite easy and works on Windows 11/10 Home and Pro as well as on all other Microsoft Windows 11, 10, ... and server operating systems


(Image-1) Connection to Remote Desktop via the command prompt!
Connect to Remote Desktop via Command Prompt!

-
▲ Back to the top ▲



2.) Parameters / arguments for remote desktop connection

See also: ►►tscon 


MSTSC [] [/ v: <server [: port]>] [/ g:] [/ admin] [/ f [ullscreen]] [/ w: / h: <height>] [/ public] | [/ span] [/ multimon] [/ edit "connection file"] [/ restrictedAdmin] [/ remoteGuard] [/ prompt] [/ shadow: [/ control] [/ noConsentPrompt]]

"connection file " - Specifies the name of an RDP File for connection.

/v: 

<server [: port]> - Specifies the remote PC that you want to connect to.

/G: 

- Specifies the RD Gateway server that will be used for the connection. This parameter is only read if the remote PC is specified with "/ v" at the end point.

/admin 

- Connects to the remote PC management session.

/f 

- Starts remote desktop in full screen mode.

/w: 

- Specifies the width of the remote desktop window.

/H: 

<height> - Specifies the height of the remote desktop window.

/public 

- Runs Remote Desktop in public mode.

/span  - 

Adjusts the height and width of the remote desktop to the local virtual desktop and, if necessary, distributes the display across multiple monitors. So that the display can be distributed over several monitors, the monitors must be arranged in a rectangle.

/multimon

 - Configures the screen layout of the Remote Desktop Services session according to the current client-side configuration.

/edit - Opens the specified RDP connection file for editing.

/restrictedAdmin 

- Connects to the remote PC in limited management mode. In this mode, no credentials are sent to the remote PC, so your device is protected in the event of a connection to a compromised PC. However, because connections made by the remote PC may not be authenticated by other PCs, application functionality and compatibility may be affected. This parameter requires the use of "/ admin".

/remoteGuard 

- Connects your device to a remote device using Remote Guard. Remote Guard prevents credentials from being sent to the remote PC. This will keep your credentials safe in the event that you connect to a compromised remote PC. In contrast to the limited management mode, Remote Guard also supports connections made by the remote PC by redirecting all requests back to your device.

/prompt

 - Requests your credentials when you connect to the remote PC.

/shadow: 

- Specifies the ID of the session to be shadowed.

/control 

- Allows you to control the session while shadowing.

/noConsentPrompt 

- Allows shadowing without user consent.



FAQ 102: Updated on: 7 August 2021 18:50 Windows
Windows-Console

Difference Between PowerShell and Command Prompt?


The range of commands and the options are the main difference between PowerShell and the command prompt on Windows 11, 10, and MS Server OS The MS PowerShell
Windows-Console

Command line arguments in the command prompt with examples!


For parameters that can be passed when the batch file is called and other variables via the set on Windows 11, 10, and MS Server OS Contents: 1.
Windows-Console

Waiting for keyboard input Command prompt Script?


Often you want to stop the script in the batch file and wait for the user to press Enter, or variables to process on Windows 11, 10, and MS Server OS
Windows-Console

Files that are younger than the date can be deleted via the command line!


It is quite easy to delete files that are younger than a certain date via the command line under Windows 11, 10, and MS Server OS Everyone probably
Windows-Console

Delete all files except the most recent via command line, script or CMD.EXE?


It is easy to delete all files except the most recent via command line, script or CMD.EXE for Windows 11, 10, and MS Server The most popular script
Windows-Console

Ability to batch rename files in lower and upper case?


It is easy to rename files in batches using a script or command prompt in lower and / or upper case letters on Windows 11, 10, and MS Server OS Everyone
Windows-Console

Serial number of the hard disk under Windows 11, 10, ... via command prompt!


It is quite easy to find out the serial number of your hard disk under Windows 11, 10, or MS Server 2022, at a command prompt There are free hard

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, 11, 10, console, connection, remote, desktop, service, command, prompt, easy, arguments, server, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + Run-Command
  + MagicMouseTrails
  + CpuFrequenz
  + MultiClipBoardSlots
  + OnlyStopWatch
  + KeepMouseSpeedOK
  + NonCompressibleFiles
  + 4ur-Windows-8-Mouse-Balls
  + 12-Ants
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.061


► What is a SD memory card? ◄

► Is OneLoupe a magnifier with Windows dual monitors support? ◄

► What are CPU threads? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....