Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

automating an RDP connection - before I just use cmdkey.exe and mstsc.exe

$
0
0

Hello,

I have to create a function that can initiate an RDP connection to remote servers.. I know it can be done using cmdkey.exe and mstsc.exe directly, I've seen examples using that method. However before I just do that, I wanted to check here if anyone knows of any other options? Using powershell of course, so I have full .net options, but I'm thinking this is case where calling out to those existing external programs is the only way to go (without fully writing your own RDP client, which I have no intention of doing).

I've also seen an approach where the function just writes rdp connection files and calls mstsc with parameters to use the connection file... I like the cmdkey.exe/mstsc.exe option better.

anything else to consider? or just move on with cmdkey.exe/mstsc.exe?

your input is appreciated, thanks!


Viewing all articles
Browse latest Browse all 21975

Trending Articles