Skip to content

A PowerShell module for working with Remote Desktop Connection (.rdp) files.

License

Notifications You must be signed in to change notification settings

rhymeswithmogul/RdpToolkit

Repository files navigation

RdpToolkit

PowerShell Gallery Version (including pre-releases) PowerShell Gallery Contributor Covenant

This is a PowerShell module to programatically generate and modify the .rdp connection files used by apps that implement Microsoft's Remote Desktop Protocol. While fairly boring on its own, perhaps you can integrate this module into something of yours.

Example

One command available in this module is New-RdcFile:

New-RdcFile -Path 'Work.rdp' -ComputerName 'WorkPC.contoso.local' -UserName '[email protected]' -Redirect Drives,Cameras,AudioCapture -Sign

That will create a file in the current folder called Work.rdp that will connect you to the computer WorkPC.contoso.local with the suggested username [email protected]. Upon successfully connecting, the local computer's cameras, drives, and microphones will be available in the remote session. The .rdp file will also be signed to prevent tampering.