A great tool we found at this site www.remkoweijnen.nl
Remco wrote a little commandline tool that starts an RDP connection (with mstsc.exe) because mstsc doesn’t allow you to use the login credentials (username, password) as commandline arguments.
- Servername (string)
- Port (integer, usually 3389)
- Username (string)
- Domain (string)
- Password (string)
- Console (integer, specify 0 for false and 1 for true)
- RedirectDrives (integer, specify 0 for false and 1 for true)
- RedirectPrinters (integer, specify 0 for false and 1 for true)
LaunchRDP MyServer 3389 User Domain Password 0 0 0
For v6 Terminal Server client it also fixes the annoying “do you trust the computer dialog” (shown below) by adding a registry key for the computer you connect to. So next time you connect you won’t be bothered!