DEV Community

Maria Harger
Maria Harger

Posted on

Windows RDP Settings File: Step-by-Step Guide

A Windows RDP settings file is a small configuration file with the .rdp extension that stores Remote Desktop Connection settings such as the remote computer name, display resolution, local resource sharing, authentication options, and user preferences. Instead of manually configuring your Remote Desktop session every time, you can save these settings into an RDP file and simply double-click it to connect to your remote Windows computer with your preferred configuration.

How to Create a Windows RDP Settings File

Creating an RDP settings file only takes a few minutes.

Step 1: Open Remote Desktop Connection

Press:

Windows + R

Type:

mstsc

Click OK.

Step 2: Enter the Computer Name

Enter either:

  • Computer name
  • Hostname
  • IP address

Example:

192.168.1.25

or

server.company.com

Step 3: Configure Display Settings

Click Show Options.

Adjust:

  • Display size
  • Color depth
  • Full-screen mode
  • Multiple monitors

Step 4: Configure Local Resources

Choose whether to share:

  • Clipboard
  • Printers
  • Smart cards
  • Local drives
  • Audio

Step 5: Save the Configuration

Click:

Save As

Choose a location such as:

Desktop

or

Documents

Save the file.

Example:

OfficeServer.rdp

Now, double-clicking the file automatically opens the saved Remote Desktop session.

Where Are RDP Files Stored?

Windows does not automatically store every connection as an RDP file.

However, users commonly save them in locations such as:

Desktop
Documents
Downloads

or a shared company folder.

Windows also remembers recent connections inside the user’s profile.

Common Settings Inside an RDP File

An RDP file contains many parameters.

Here are some common examples.

Full Address

full address:s:server.company.com

Specifies the destination server.

Username

username:s:Administrator

Specifies the login username.

Screen Mode

screen mode id:i:2

Values:

  • 1 = Windowed
  • 2 = Full Screen

Desktop Width

desktopwidth:i:1920

Sets screen width.

Desktop Height

desktopheight:i:1080

Sets screen height.

Redirect Clipboard

redirectclipboard:i:1

Allows copying and pasting between local and remote computers.

Redirect Printers

redirectprinters:i:1

Makes local printers available during the session.

Audio Mode

audiomode:i:0

Controls where sound is played.

How to Edit an RDP File

Since an RDP file is plain text, editing it is straightforward.

  1. Right-click the file.
  2. Select Open With.
  3. Choose Notepad.
  4. Modify the desired settings.
  5. Save the file.

For example:

Before:

desktopwidth:i:1280
desktopheight:i:720

After:

desktopwidth:i:2560
desktopheight:i:1440

The next Remote Desktop session will use the updated resolution.

Important Security Considerations

Although RDP files are convenient, they should be handled securely.

Avoid Saving Passwords

Windows can store credentials securely through the Windows Credential Manager instead of embedding sensitive information in the RDP file.

Use Network Level Authentication (NLA)

Enable NLA whenever possible.

Benefits include:

  • Better authentication
  • Reduced attack surface
  • Protection against unauthorized access

Protect Sensitive Files

Do not email RDP files containing sensitive connection details unless they are encrypted.

Limit File Access

Only authorized users should have access to company RDP files.

Advanced RDP Configuration Options

Power users can configure many advanced features.

Examples include:

Multiple Monitors

use multimon:i:1

Enables all monitors.

RemoteApp

Allows only selected applications to appear instead of the full desktop.

Remote Desktop Gateway

Useful for secure internet-based Remote Desktop connections.

Typical settings include:

  • Gateway hostname
  • Authentication method
  • Usage policies

Compression

RDP automatically compresses data for improved performance over slower internet connections.

Read More Article

Top comments (0)