powershellremote-desktop

How do I start remote desktop from PowerShell?


How do I start an RDP session from powershell? I'm looking to avoid a custom script because I work at an MSP and end up remoting into machines across various domains in a day and so maintaining a selection of scripts across each is not trivial (unless you have a solution to that for me).


Solution

  • Same as in command line, you can launch the RDP client as so:

    mstsc /v:10.10.10.10:3389