Windows_PowerShell_icon

New Module: Creating an RDP file password with PowerShell

Windows_PowerShell_iconHere’s something that is surprisingly tricky to automate in this day and age. Creating a password and storing it in an RDP file. I’m not here to debate the security “knock ons” of doing this, it’s not in my interest and if I’m asked to do something despite advice against it, I do it!

But as always I figured I’d share this feature in case anyone else needs it.

So RDP files encrypt a password in a very specific way and details online are cagey.This is something I set about doing myself and I’m happy to annouce I’ve included it in the following Free Powershell module for your use!

The module is very simple:

 

Importing the module:

Import-module RDS.Password.dll

Converting a string to a password:

Get-RDPPassword -Password "SomethingSecure"

This will give you an rdp password, pre formatted for an rdp file.

rdppassword

Optionally, you can include -ToClipboard to copy the text to the clipboard for easy copy -> paste into an RDP file.

Get-RDPPassword -Password "SomethingSecure" -ToClipboard

And that’s it, simply import the module and off you go.

If there is anything further you want to do with this, i.e. providing an RDP file to enter it into, accepting PSCredential as an argument or anything like that, get in contact and we’ll see what we can do!

Consent:

 

This module is provided absolutely free of charge, using this module in a commercial product on the other hand is not condoned!

Also, don’t ask me to reverse it, i’m not going to do it.

Download:

 

Here:

Related Posts

Dealing with multi numbered versions in powershell... So here's a quick little blog about something i discovered in powershell while googling today. Lots of vendors like to use version numbers includin...
Accurately checking the Citrix PVS “cache in... Citrix Provisioning services "Cache in RAM, overflow to disk", even with it's challenges is something I've always felt was a great idea, hell, I fores...
Adding a list of Authorised files to RES Workspace... This is just a quick article on how to search for exe's recursively in a specific path and add them to an RES Workspace Manager building block to be i...

Leave a Reply