Tuesday, August 27, 2019

Automate: Create Remote Desktop connection

How to connect to remote machine automatically running a bat file in Windows.
This will ease your life.

below is the sample line

cmdkey /generic:"IP Address" /user:"UserName" /pass:"Password"
mstsc /v:"IP Address"
eg:

cmdkey /generic:111.111.111.111 /user:Domain\user.name /pass:password
mstsc /v:111.111.111.111

No comments:

Post a Comment