Link to home
Start Free TrialLog in
Avatar of Roi Mirmelshtein
Roi MirmelshteinFlag for Israel

asked on

Script for RDP auto login

Hello Experts
I am looking for a script to auto login through RDP to a specific computer that will automatically login to this server with the proper username & password.
I tried it using a batch file: "nstsc.exe /v:{computer name}" but since I cannot send keys (user & password) on a batch file I was wondering if I could perform this task using a different script..VBScript maybe....??
Can you help...??
Avatar of burdsjm
burdsjm
Flag of United States of America image

Depending on your RDP version you can usually use a command like

C:\windows\System32\mstsc.exe /v:computername /admin

when the screen pops up you can check the box that says remember username and password.

Avatar of Roi Mirmelshtein

ASKER

Thanks but, don't want it to login as an administrator so I dont need the /admin part...second when I run this script it opens a new RDP session and it does not give me the option to save the password...
It there any way to do this in VBScript? myabe send the username & password to the RDP session window?
/admin is for the console in the new RDP.  I have it on a few machines and if you hit the options button at the bottom of the screen, it gives you a "Allow me to save credentials"  and it won't prompt you again for the username and password till you change it.
ASKER CERTIFIED SOLUTION
Avatar of biaselectronics
biaselectronics

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial