Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    How to View Saved Wi-Fi Passwords from Settings app in Windows 11

    May 27, 2023

    How to Enable New File Explorer Header UI on Windows 11 (Redesign 2023)

    May 27, 2023

    How to Show or Hide New Bing Search Bar on Windows 11 Desktop

    May 27, 2023
    What's Hot

    How to View Saved Wi-Fi Passwords from Settings app in Windows 11

    May 27, 2023

    How to Enable New File Explorer Header UI on Windows 11 (Redesign 2023)

    May 27, 2023

    How to Show or Hide New Bing Search Bar on Windows 11 Desktop

    May 27, 2023
    Facebook Twitter Instagram
    GeekerMag
    • Home
    • Windows
      1. Windows 11
      2. Windows 10
      3. View All

      How to View Saved Wi-Fi Passwords from Settings app in Windows 11

      May 27, 2023

      How to Enable New File Explorer Header UI on Windows 11 (Redesign 2023)

      May 27, 2023

      How to Show or Hide New Bing Search Bar on Windows 11 Desktop

      May 27, 2023

      How to Enable/Disable Use Print Screen to Open Snipping Tool in Windows 11

      May 26, 2023

      How to Disable New ‘Bing Search Bar’ on Windows 10 Desktop

      March 17, 2023

      How to Stop Internet Explorer Open/Redirect to Microsoft Edge in Windows 10

      March 6, 2023

      How to Download & Install Intel Unison on Windows 10 PC (Workaround)

      February 21, 2023

      Fix – Microsoft Store Error Code 0xC002001B in Windows 10 While Installing Apps

      May 21, 2022

      How to View Saved Wi-Fi Passwords from Settings app in Windows 11

      May 27, 2023

      How to Enable New File Explorer Header UI on Windows 11 (Redesign 2023)

      May 27, 2023

      How to Show or Hide New Bing Search Bar on Windows 11 Desktop

      May 27, 2023

      How to Enable/Disable Use Print Screen to Open Snipping Tool in Windows 11

      May 26, 2023
    • Browser
      1. Microsoft Edge
      2. Google Chrome
      3. Firefox
      4. View All

      How to Disable Bing Chat Shopping Suggestions & Prompts in Microsoft Edge

      May 25, 2023

      How to Turn ON ‘Edge for Gamers’ Feature for Enhanced Gaming Experience

      May 14, 2023

      How to Try New Microsoft Edge Look with Round Corners (2023)

      May 6, 2023

      How to Use Bing Chat Integration in Edge (Right-click) Mini Menu

      April 30, 2023

      Fix – Opening Chrome opens Default App Settings in Windows 11/10

      May 1, 2023

      How to Enable and Use Chrome Hidden Reader Mode (2023)

      April 9, 2023

      How to Use New Bing Chat Mode in Google Chrome

      March 15, 2023

      How to Disable Windows 10 Upgrade Prompt in Google Chrome – 2023 Guide

      February 2, 2023

      How to Automatically Reject All Cookies Banner on Sites in Firefox

      December 23, 2022

      How to Install Firefox v100 in Windows 7

      April 9, 2022

      How to Enable Close Tab Warning in Firefox 94

      October 27, 2021

      How to Restore Missing View Image Info Option in Firefox

      September 2, 2021

      How to View Saved Wi-Fi Passwords from Settings app in Windows 11

      May 27, 2023

      How to Enable New File Explorer Header UI on Windows 11 (Redesign 2023)

      May 27, 2023

      How to Show or Hide New Bing Search Bar on Windows 11 Desktop

      May 27, 2023

      How to Enable/Disable Use Print Screen to Open Snipping Tool in Windows 11

      May 26, 2023
    • Gaming

      Fix – Avast Antivirus Blocking or Disconnecting League of Legends

      May 4, 2023

      5 Cool Puzzle and Brain Teaser Games

      November 24, 2022

      4 Alternatives to Microsoft Solitaire You Should Try 

      June 29, 2022

      5 Best Equipment to Stream Your Game Live [Logitech, Tonor & so on..]

      April 6, 2022

      Twitch Set to Offer Income Incentives to Help Level the Playing Field

      March 9, 2022
    • Best Of

      How to Find Someone Online using their Picture

      April 5, 2023

      Lasta Review: Can This App Aid in Weight Loss?

      April 5, 2023

      How to Create Stunning Visuals for Instagram in 2023

      March 23, 2023

      How to Teach your Child to Program in Python

      January 30, 2023

      What Should You Look at Before Choosing Automatic Captioning Software?

      April 20, 2022
    • How to

      Convert HEIC to JPG without Losing Quality Online for Free

      May 8, 2023

      How to Know Someone Is Lying to You Online

      April 25, 2023

      How to Add Text Box to PDF on Mac? Three Effective Ways

      April 18, 2023

      How to Recover Data From SD Card Using Recuva

      April 17, 2023

      Upgrading from Windows 7 to Windows 10: How to Keep Your Data Safe‍

      March 20, 2023
    GeekerMag
    Home»Windows 11»MSTSC.exe (Explained) Remote Desktop Command Line Arguments
    Windows 11

    MSTSC.exe (Explained) Remote Desktop Command Line Arguments

    By Viney DhimanAugust 8, 2022Updated:August 8, 2022No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    PC Repair and Driver Updater Recommended for Fixing Issues and Updating Drives on Windows PC. Trusted by Millions.

    So What is MSTSC.exe in Windows 11/10? It is software that comes preinstalled in Windows OS and allows users to connect to a PC via Remote Desktop Protocol (RDP). The purpose of this software is to establish a connection between two computers and allow users to get access to a remote host desktop.

    In the process of connecting two PC using MSTSC.exe, your computer will act as a host, while the computer to which you’re establishing a connection via RDP is named as a client.

    When establishing a remote session as a host, you need to be running Windows 11/10 Pro or Enterprise. While users running any edition of Windows 11/10 can act as Remote Desktop clients. MSTSC.exe comes preinstalled in all editions of Windows OS, so you don’t need an additional program to establish a connection.

    Contents show
    Open MSTSC.exe in Windows 11/10
    Remote Desktop (mstsc.exe) Command Line Arguments

    Open MSTSC.exe in Windows 11/10

    Click on the Search icon available on the taskbar, then type mstsc.exe, this will bring the Remote Desktop Connection program in search results, click to open it.

    Remote Desktop Connection (RDP) MSTSC.exe

    Alternatively, you can launch the Run dialog box by pressing the WIN + R key combo or launch Windows Powershell, then type mstsc.exe, and hit enter. This will also open the Remote Desktop Connection app.

    mstsc.exe location is this: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories

    Remote Desktop (mstsc.exe) Command Line Arguments

    If you prefer to perform various actions of programs installed on the PC via Windows Powershell, then mstsc.exe support various command line argument that you can use.

    To get a list of MSTSC.exe Command Line Arguments, launch Windows Powershell and

    MSTSC.exe support various command line argument that you can use to perform various operations via Powershell or Run dialog box. Let’s learn about Remote Desktop (mstsc.exe) Command Line Arguments

    To get a full list of Command Line Argument that MSTSC support, launch Windows Powershell and type mstsc.exe / , a dialogue box will appear with a list.

    Remote Desktop Connection (RDP) MSTSC.exe - Command Line Argument that MSTSC

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

    The explanation for each parameter in the syntax is as follows-

    • connection file – This is used to specify the name of the ‘.RDP’ file.
    • /v:<gateway> – This parameter is used to specify the RD gateway server. 
    • admin – This connects you to a session for administering the server. 
    • /f – Using this parameter, the remote desktop session is started in fullscreen.
    • /w:<width> – You can specify the width of the Remote desktop window using this parameter.
    • /h:<height> – It is used to specify the height of the Remote desktop window.
    • /public – Runs Remote Desktop in public mode.
    • /span – This will match the width and height of the remote desktop with the local virtual desktop. It allows spanning across multiple monitors.
    • /multimon – This will see the layout of the multiple monitors in the Remote Desktop session to be similar to the current client-side configuration.
    • /edit – Opens the specified .RDP connection file for editing.
    • /restrictedAdmin – Using this parameter, you will be connected to the PC in the restricted Administration mode. In this mode, details and credentials will not be sent to the PC. 
    • /remoteGuard – This will prevent your credentials from being sent to the remote PC. When using this parameter, you will be using a Remote guard to connect your device to the remote PC.
    • /prompt – This parameter will ask you for the credentials when you connect to the remote PC.
    • /shadow:<sessionID> – Specifies the ID of the session to shadow.
    • /control – You will be able to control the session when shadowing.
    • /noConsentPrompt – Shadowing can be done without the user’s consent with this parameter.

    When using Remote Desktop Protocol or MSTSC.exe, you must know that:

    • You will find the Default.rdp file in the Documents folder. This will be available for each user but will be hidden. 
    • The .rdp files that the users create are saved in the Documents folder. However, users do have the option to save them anywhere else. 
    • The monitors must have the same resolution, and they should be aligned horizontally if you want to span. You cannot span on monitors vertically as this is not supported. 

    That’s all about the MSTSC.exe (RDP) on your Windows 11/10 PC. You can use it to access RDP and control your PC from another. You can follow the above guide, and you will be able to use MSTSC.exe on your Windows 11 PC.

    Donate on Paypal or Buy us a coffee or Join Patreon if you find the information shared in this blog post useful. Mention ‘Coffee’ in the Subject. So that I can thank you.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Viney Dhiman
    • Website
    • Facebook
    • Twitter
    • Instagram
    • LinkedIn

    Himachali, Mechanical Engineer, Snooker Lover, Avid drinker of Scotch, Traveler, and Webmaster.

    Related Posts

    How to View Saved Wi-Fi Passwords from Settings app in Windows 11

    May 27, 2023

    How to Enable New File Explorer Header UI on Windows 11 (Redesign 2023)

    May 27, 2023

    How to Show or Hide New Bing Search Bar on Windows 11 Desktop

    May 27, 2023

    How to Enable/Disable Use Print Screen to Open Snipping Tool in Windows 11

    May 26, 2023
    Add A Comment

    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Recommend App

    Free HEIC to JPG Converter Online

    Fix Windows Issues

    Use OutByte PC Repair and OutByte Driver Updater. Recommended for Fixing Issues and Updating Drives on Windows PC. Trusted by Millions.

    Need Support?

    Please do not hesitate to Contact me on Twitter or Join Facebook Group if you want assistance with issue related to Windows 11, Windows 10, and Edge browser. I will try my best to assist you ASAP. (Follow me first and then PM your issue on Twitter)

    Our Picks

    How to View Saved Wi-Fi Passwords from Settings app in Windows 11

    May 27, 2023

    How to Enable New File Explorer Header UI on Windows 11 (Redesign 2023)

    May 27, 2023

    How to Show or Hide New Bing Search Bar on Windows 11 Desktop

    May 27, 2023

    How to Enable/Disable Use Print Screen to Open Snipping Tool in Windows 11

    May 26, 2023
    Help Us Grow!

    Donate on Paypal or Buy us a coffee or Join Patreon if you find the information shared in this blog post useful. Mention ‘Coffee’ in the Subject. So that I can thank you

    Facebook Twitter YouTube
    • About
    • Contact
    • Privacy Policy
    • TOC
    © 2023 All Rights Reserved | GeekerMag

    Type above and press Enter to search. Press Esc to cancel.