Monday, April 6, 2015

create auto login to windows RDP

To create Auto / Automatic / automate RDP (remote desktop) login in windows machines:

Open cmd (command prompt)
cmdkey /generic:"<ip>" /user:"<domain\user>" /pass:"<password>"
below is an example
cmdkey /generic:"192.168.24.14" /user:"D3\adm_dummy" /pass:"abcd1234"

Then open a notepad and type (example)
mstsc /v 192.168.24.14
save as - 123.bat
save as type - all files

now you can place 123.bat in startup or run it manually to autologin to remote desktop

No comments: