MSTSC Explained: How Windows Remote Desktop Connection Works, Benefits, Setup, Security, and Troubleshooting
QUICK ANSWER MSTSC, short for Microsoft Terminal Services Client, is the built-in Windows Remote Desktop Connection application. It uses the Remote Desktop P...
QUICK ANSWER
MSTSC, short for Microsoft Terminal Services Client, is the built-in Windows Remote Desktop Connection application. It uses the Remote Desktop Protocol (RDP) to display and control another Windows computer over a network. Start it by pressing Windows + R, entering mstsc, and selecting OK.
The destination computer must support Remote Desktop hosting, be powered on and reachable, have Remote Desktop enabled, and permit your account. Keep Network Level Authentication enabled and use a VPN or Remote Desktop Gateway for access from outside the local network. Directly exposing RDP port 3389 to the internet is not recommended.
What Is MSTSC?
mstsc.exe is the executable for the classic Windows Remote Desktop Connection application. It can:
- Connect to Windows computers and Remote Desktop Session Hosts.
- Open or edit saved
.rdpconnection files. - Start full-screen, multi-monitor, administrative, and shadowing sessions.
- Connect through a Remote Desktop Gateway.
- Redirect approved local resources such as the clipboard, printers, audio, and drives.
MSTSC is the client application. RDP is the network protocol used for the connection. The two terms are related but not interchangeable.
Microsoft documents MSTSC for Windows 10, Windows 11, supported Windows Server versions, and Azure Local. Microsoft Learn
How MSTSC and RDP Work
An MSTSC connection involves two systems:
| Component | Purpose |
|---|---|
| Local computer | Runs mstsc.exe and sends keyboard and mouse input |
| Remote computer | Runs the Remote Desktop service and processes applications |
| RDP connection | Carries display, input, audio, clipboard, and permitted device-redirection data |
| User account | Authenticates the user and determines access permissions |
The process normally works as follows:
- MSTSC resolves the remote computer’s hostname or uses its IP address.
- The client contacts the RDP listener on the destination computer.
- If Network Level Authentication is enabled, authentication occurs before a complete desktop session is created.
- Windows checks the user’s logon rights and Remote Desktop permissions.
- The remote computer creates or reconnects the user’s session.
- MSTSC displays the remote desktop and sends keyboard and mouse input to it.
- The remote system runs the applications and returns updated screen information.
The applications execute on the remote computer—not on the client. Consequently, application performance depends mainly on the remote computer, while display responsiveness depends on network latency, bandwidth, and session settings.
Standard direct RDP uses TCP and UDP port 3389 by default, although administrators can configure another port. Microsoft Learn
Benefits of MSTSC
Built Into Windows
MSTSC is included with supported Windows versions, so a separate third-party client is usually unnecessary.
Full Graphical Remote Access
Users can access applications, files, settings, and permitted network resources as if they were working at the remote computer.
Efficient Network Usage
RDP primarily transmits input and graphical updates instead of continuously streaming the desktop as ordinary video. This can make it practical on business networks, although high-resolution displays, video, animation, and multiple monitors increase bandwidth requirements.
Remote Administration
IT professionals can use MSTSC to:
- Administer Windows servers.
- Support workstations.
- Access laboratory or office computers.
- Manage virtual machines.
- Connect to cloud-hosted Windows systems.
- Perform maintenance without physical access.
Resource Redirection
Subject to client settings and organizational policies, RDP can redirect resources between the local and remote sessions, including:
- Clipboard
- Printers
- Audio
- Microphones
- Local drives
- Smart cards
- Supported ports and devices
Redirection improves productivity but also creates possible data-transfer paths. Organizations should disable unnecessary redirection through policy.
Reusable Connection Profiles
MSTSC can save connection settings in .rdp files. This is useful for frequently accessed systems, standardized screen settings, gateway configurations, and support procedures.
Requirements and Limitations
Supported Host Editions
A Windows computer receiving an incoming connection must run a supported host edition, such as:
- Windows Professional
- Windows Enterprise
- Windows Education
- Windows Server
Windows Home can run the client and connect to another computer, but it cannot act as a built-in Remote Desktop host. Microsoft Learn
Connection Requirements
Before connecting, verify that:
- The remote computer is powered on.
- It is connected to the network.
- Remote Desktop is enabled.
- Windows Firewall or another firewall permits the connection.
- The user has a password and is authorized for Remote Desktop.
- The hostname or IP address is correct.
- A VPN or RD Gateway connection is active when required.
- No network firewall, router, or cloud security rule is blocking the configured RDP port.
Administrator rights are required to enable Remote Desktop and change its system-level configuration.
Session and Licensing Limitations
MSTSC is only a client; it does not grant additional concurrent-user rights.
For a multi-user Windows Server deployment, Remote Desktop Services roles and appropriate licensing may be required. A production RD Session Host normally needs an activated Remote Desktop license server and valid per-user or per-device RDS Client Access Licenses. learn.microsoft.com
Do not use unsupported patches or system modifications to bypass Windows session or licensing limits.
How to Enable Remote Desktop
Perform these steps on the computer you want to access:
- Sign in with an administrator account.
- Open Settings.
- Select System > Remote Desktop.
- Turn on Remote Desktop.
- Confirm the change.
- Open Remote Desktop users or Select users that can remotely access this PC.
- Add the required non-administrator accounts.
Members of the local Administrators group are normally permitted automatically. Added users must still have valid credentials and must not be blocked by security policy.
Enabling Remote Desktop opens access through the computer’s firewall for the applicable network configuration. It should be enabled only where remote access is genuinely required. Microsoft Learn
How to Connect with MSTSC
Connect Through the Graphical Interface
- Press
Windows + R. - Enter:
mstsc
- Select OK.
- Enter the remote computer’s hostname, fully qualified domain name, or IP address.
- Select Show Options if you need to configure the username, display, audio, local resources, or gateway.
- Select Connect.
- Verify the destination shown in any security or certificate prompt.
- Enter an authorized account, for example:
DOMAIN\username
or:
computername\username
- Select OK.
Do not ignore an unexpected certificate-name or identity warning. Confirm the computer name, DNS configuration, certificate, VPN, and gateway before supplying credentials.
Connect to a Specific Port
If the administrator has configured a non-default RDP port, use:
server-name:port
Example:
rdpserver.example.com:3390
A custom port can reduce background scanning noise, but it is not a replacement for authentication, firewall restrictions, patching, a VPN, or RD Gateway.
Useful MSTSC Commands
The documented syntax includes connection files, server and gateway selection, display modes, public mode, administrative sessions, Remote Guard, Restricted Admin, and session shadowing. Microsoft Learn
| Command | Purpose |
|---|---|
mstsc |
Open Remote Desktop Connection |
mstsc /v:server1 |
Connect to server1 |
mstsc /v:server1:3390 |
Connect using a specified port |
mstsc /f |
Start in full-screen mode |
mstsc /v:server1 /w:1920 /h:1080 |
Use a specified window size |
mstsc /multimon |
Match the session to the local monitor layout |
mstsc /span |
Span one desktop across compatible monitors |
mstsc /admin |
Connect to a server administrative session |
mstsc /public |
Avoid caching passwords and bitmaps |
mstsc /prompt |
Prompt for credentials |
mstsc /g:gateway.example.com /v:server1 |
Connect through an RD Gateway |
mstsc connection.rdp |
Open a saved RDP file |
mstsc /edit connection.rdp |
Edit a saved RDP file |
mstsc /l |
List local monitors and their IDs |
mstsc /? |
Display supported options |
/span and /multimon are different. /span creates a single desktop across horizontally aligned monitors with compatible dimensions, whereas /multimon reproduces the client’s monitor layout.
Security-Focused Modes
mstsc /restrictedAdmin avoids sending reusable credentials to the remote computer, but it can limit access to other network resources from the remote session.
mstsc /remoteGuard protects credentials by redirecting authentication requests back to the client. These modes are designed for managed administrative scenarios and can require domain configuration and compatible systems. Test application and network-resource access before deployment.
Saving and Using RDP Files Safely
To save a profile:
- Open MSTSC.
- Select Show Options.
- Configure the connection.
- Select Save As.
- Save the file with an
.rdpextension.
Treat downloaded or emailed .rdp files as untrusted until inspected. A file can request connections to an unexpected server or enable access to local resources. Confirm the destination, gateway, publisher information, and requested resource redirections before opening it.
Microsoft’s connection security dialog identifies the destination and any local resources requested by an RDP file. Resource access should be enabled only when necessary. learn.microsoft.com
Security Best Practices
Keep Network Level Authentication Enabled
NLA requires authentication before Windows creates a full remote session. This reduces resource consumption from unauthenticated connection attempts and adds protection against unauthorized access.
Disable NLA only temporarily when diagnosing a legitimate compatibility problem with an older client. Restore it after testing. Microsoft recommends keeping it enabled in most environments. Microsoft Learn
Do Not Expose RDP Directly to the Internet
Router port forwarding can make an internal RDP service reachable through a public IP address, but Microsoft warns that exposing the computer this way is not recommended. A VPN is preferable because it allows the client to access the internal network without publishing the PC’s RDP port directly. Microsoft Learn
For managed environments, consider:
- A properly secured VPN
- Remote Desktop Gateway
- Firewall source-IP restrictions
- Cloud-native secure access services
- Multifactor authentication at the VPN, gateway, or identity-access layer
Apply Least Privilege
- Permit only users who require remote access.
- Avoid routine use of privileged domain accounts.
- Use separate administrative accounts where appropriate.
- Remove former users promptly.
- Restrict administrative logon through Group Policy.
Protect Credentials
- Require strong, unique passwords.
- Use account lockout or smart-lockout controls.
- Avoid saving privileged credentials on shared computers.
- Use
/publicon public or temporary devices. - Verify certificate warnings and server identity.
- Consider Remote Guard for supported administrative workflows.
Limit Redirection
Disable clipboard, drive, printer, smart-card, microphone, or device redirection when it is unnecessary. This reduces the risk of data leakage, malicious file transfer, and unwanted access to local resources.
Maintain the Systems
Keep the client, host, gateway, VPN platform, and security software supported and updated. Remove Remote Desktop access from systems that no longer need it.
How to Verify Connectivity
Check Name Resolution
Resolve-DnsName server1.example.com
If name resolution fails, verify DNS records, VPN DNS settings, or use the correct IP address for testing.
Test the RDP Port
For a default direct RDP connection:
Test-NetConnection server1.example.com -Port 3389
A successful TcpTestSucceeded result confirms that TCP connectivity reached the specified port. It does not prove that credentials, NLA, authorization, certificates, or the complete RDP session will succeed.
For a custom port, replace 3389 with the configured value.
Confirm the Target Configuration
On the remote computer, verify:
- Settings > System > Remote Desktop is enabled.
- The account appears in the authorized users list or Administrators group.
- Relevant Windows Defender Firewall Remote Desktop rules are enabled.
- The Remote Desktop service is running.
- The computer is not asleep.
- The network or cloud firewall permits only the necessary source and destination traffic.
Troubleshooting Common MSTSC Problems
“Remote Desktop Can’t Connect to the Remote Computer”
Possible causes include:
- Incorrect hostname or IP address
- Remote computer powered off or asleep
- Remote Desktop disabled
- Firewall or router blocking RDP
- VPN not connected
- Incorrect custom port
- RDP service unavailable
- Cloud network security rule blocking access
Test DNS and port connectivity first. If TCP connectivity fails, investigate routing, VPN, firewall, and listener configuration before changing authentication settings.
Credentials Are Rejected
Check:
- Username format
- Password accuracy
- Account lockout or expiration
- Whether the account is permitted to use Remote Desktop
- Domain connectivity and time synchronization
- Local or domain policy denying remote logon
- NLA and credential-provider compatibility
Try an explicit account format such as DOMAIN\username, user@example.com, or computername\username, as appropriate.
The Computer Responds to Ping but RDP Fails
Ping and RDP use different protocols. A successful ping does not prove that the RDP port is open. Run:
Test-NetConnection server1 -Port 3389
If the TCP test fails, inspect the host firewall, network firewall, VPN route, router, cloud security group, and configured listening port.
Black Screen or Poor Performance
Try the following:
- Reduce the resolution.
- Use one monitor instead of multiple monitors.
- Lower the color and visual-experience settings.
- Disable unnecessary wallpaper, animation, audio, and device redirection.
- Check latency, packet loss, and VPN performance.
- Update display, network, and virtualization drivers on the host.
- Reconnect the session or restart the remote computer during an approved maintenance window.
Clipboard, Drives, or Printers Are Missing
Open MSTSC, select Show Options > Local Resources, and verify the required selections. If the setting is present but redirection still fails, an administrator may have disabled it using Group Policy or another management policy.
Do not weaken an organizational redirection policy without authorization.
Certificate or Identity Warning Appears
Confirm:
- The entered hostname is correct.
- DNS points to the intended computer.
- The certificate name matches the destination.
- The certificate chain is trusted.
- The correct RD Gateway is being used.
Do not approve an unexpected warning merely to complete the connection. It can indicate ordinary certificate misconfiguration, but it can also mean that the destination is not the system you intended to reach.
MSTSC Compared with Related Options
| Option | Best suited for | Important consideration |
|---|---|---|
| MSTSC | Direct Windows RDP connections and traditional administration | Host must support RDP and be securely reachable |
| Windows App | Supported Microsoft remote desktops, Cloud PCs, Azure Virtual Desktop, and related resources | Available capabilities depend on the connected service and platform |
| Remote Desktop Gateway | Controlled external access to internal RDP resources | Requires server infrastructure, certificates, policies, and administration |
| VPN plus MSTSC | Private access to systems on an internal network | VPN security and routing must be configured correctly |
| Quick Assist | Interactive assistance for an end user | Designed for support rather than unattended administrative access |
| Remote support platform | Cross-platform support or centralized remote-management requirements | Evaluate security, licensing, auditing, and vendor access controls |
What to Expect After Connecting
After authentication, MSTSC displays a Windows session running on the remote computer. Applications use the remote computer’s processor, memory, storage, and network access. Depending on the host edition, configuration, and existing session state, Windows may reconnect an existing session or start an allowed session.
Closing the MSTSC window usually disconnects the session rather than signing the user out. Programs may continue running remotely. Use Sign out inside the remote session when work is complete and the session should end.
FAQ
Is MSTSC the same as RDP?
No. MSTSC is Microsoft’s Windows Remote Desktop Connection client application. RDP is the protocol used to communicate with the remote computer.
How do I open MSTSC?
Press Windows + R, enter mstsc, and select OK. You can also search for Remote Desktop Connection from the Start menu.
Can Windows Home accept an MSTSC connection?
No. Windows Home can be used as an RDP client, but it cannot act as the built-in Remote Desktop host. A supported Professional, Enterprise, Education, or Windows Server edition is required. Microsoft Learn
What port does MSTSC use?
Direct RDP normally uses TCP and UDP port 3389. The port can be changed, and connections through an RD Gateway use different external communication paths, commonly HTTPS on TCP 443. Microsoft Learn
Is MSTSC secure?
MSTSC can be used securely when systems are updated, NLA is enabled, server identity is verified, access is restricted, and remote connectivity is provided through a VPN or RD Gateway. Direct exposure of RDP to the public internet substantially increases risk and is not recommended.
Does changing port 3389 make RDP secure?
No. A non-default port may reduce routine scanning noise, but it does not prevent discovery or exploitation. Strong authentication, NLA, patching, network restrictions, monitoring, and secure remote-access architecture remain necessary.
Can MSTSC transfer files?
Yes, if drive or clipboard redirection is enabled and permitted by policy. In MSTSC, review Show Options > Local Resources > More. Use redirection only for authorized data.
What does mstsc /admin do?
It requests a server administrative session. It does not bypass authentication, permissions, session limits, or licensing requirements.
Does closing MSTSC sign me out?
Usually not. Closing the client generally disconnects the remote session, allowing applications to continue running. Use Sign out inside the remote Windows session when you intend to end it.
Can MSTSC connect over the internet?
Yes, but the safer approaches are a VPN or Remote Desktop Gateway. Microsoft does not recommend exposing an RDP port directly through unrestricted router port forwarding. Microsoft Learn
FINAL RECOMMENDATION / CONCLUSION
MSTSC is a capable built-in client for remote Windows access, server administration, and support. For safe use, enable Remote Desktop only on systems that require it, keep NLA enabled, authorize the minimum necessary users, restrict resource redirection, verify certificate warnings, and keep every component updated.
Use MSTSC directly on a trusted private network. For access from outside that network, use a properly secured VPN or Remote Desktop Gateway instead of publishing port 3389 to the internet. Organizations needing multiple concurrent Windows Server sessions should deploy and license Remote Desktop Services correctly rather than attempting to bypass platform limits.
#MSTSC #RemoteDesktop #RDP #Windows #Windows11 #WindowsServer #RemoteAccess #ITSupport #SystemAdministration #NetworkSecurity #RemoteDesktopConnection #NLA #RDGateway #VPN #RDPCommands #Troubleshooting #Cybersecurity #WindowsNetworking #ITAdministration #Knowledgebase
SOURCES
- Microsoft Learn: mstsc command reference Microsoft Learn
- Microsoft Learn: Enable Remote Desktop on your PC Microsoft Learn
- Microsoft Learn: Allow Remote Desktop access from outside your network Microsoft Learn
- Microsoft Learn: Ports used by Remote Desktop Services Microsoft Learn
- Microsoft Learn: License Remote Desktop Services with CALs learn.microsoft.com
- Microsoft Learn: Understanding Remote Desktop Protocol learn.microsoft.com
- Microsoft Learn: Understanding security warnings when opening RDP files learn.microsoft.com
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.