Double-click the downloaded file to connect with Remote Desktop Connection. Every line is a setting from Microsoft's supported RDP properties, such as drivestoredirect:s:* to share all drives. To see what any .rdp file does, open it in the RDP file viewer.
Since the April 2026 security update, Remote Desktop Connection shows a security dialog each time an .rdp file is opened, with every redirection switched off until the user ticks it (Microsoft). Users of a file you hand out will see that dialog, so tell them which items to tick.
Choose One app (RemoteApp) and enter the program's alias as it is published on the server, usually written with two vertical bars such as ||excel. The file then opens just that application. A RemoteApp only exists if an administrator has published it in a Remote Desktop Services collection.
Users of published apps often find that files they save land on the server instead of their PC. If that is the problem you are solving, see RemoteApp saves files to the server instead of my PC.
Azure Virtual Desktop builds the .rdp file for each user itself, so you don't hand out files. Instead, set the host pool's custom RDP properties (Microsoft). The builder's Azure Virtual Desktop tab gives the same choices as a property string to paste into the Azure portal, and as an Update-AzWvdHostPool command. Connection, sign-in and RemoteApp settings are left out because the service sets them.
- A Group Policy or Intune setting on the session hosts can still override a property, because the most restrictive setting wins (Microsoft).
- If drives still don't appear, work through AVD local drives not showing.
Remote Desktop Connection doesn't store passwords as text in .rdp files. It encrypts a saved password for the Windows account that saved it, so a password typed into a file elsewhere would not work and would only be a risk if the file were shared. Connect once and choose to remember your credentials instead.
Can I create an .rdp file with the username and password saved?+
You can add a user name here. A password can't be typed into an .rdp file: Remote Desktop Connection stores it encrypted for your own Windows account. Connect once, tick Remember me when Windows asks, and it is saved for you.
Why don't my drives show up even though the file shares them?+
The file only asks for drives. A Group Policy, an RDS collection setting or an Azure Virtual Desktop host pool setting can still block them, and the most restrictive setting wins. Follow the RDP drive redirection troubleshooting guide to find which one.
How do I create an .rdp file with PowerShell?+
An .rdp file is plain text, so any script can write one line per setting. Save it as Unicode (UTF-16), the encoding Remote Desktop Connection uses. For Azure Virtual Desktop, set host pool properties with Update-AzWvdHostPool -CustomRdpProperty, as the builder's Azure Virtual Desktop tab shows.
Is anything I type sent to TwinPane?+
No. The file is built by JavaScript in this page and downloaded straight from your browser.
RDP file viewer
See what any .rdp file connects to and shares.
RDP drive redirection not working
Why \\tsclient shows no drives, layer by layer.
Copy files from Remote Desktop to your PC
Clipboard, drive redirection, and what blocks them.
Why RDP drive redirection is slow
Why browsing redirected drives crawls, and what to tune.