The mstsc tool unfortunately does not support credentials, because of this I have written a short function that uses mstsc in combination a input of username and password or a PowerShell credential object. In the tip on PowerShell Magazine I show how to use this function to connect to Azure virtual machines. The full article is available on PowerShell Magazine : Connect to Azure Virtual Machines without being prompted for credentials
Connect-Mstsc –ComputerName cloudservice.cloudapp.net:58142 –U jaapbrasser -P secretpw1
For more articles like this, have a look at the External Articles section of my blog, it contains all the articles I have posted on external sources such as PowerShell Magazine.
|Links in this Article|
|PSTip: Connect to Azure Virtual Machines without being prompted for credentials|
|My entries in TechNet Script Gallery|