Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling Remote Desktop

Status
Not open for further replies.

smithy1981

IS-IT--Management
Sep 16, 2005
12
GB
I am trying to create a shortcut for a remote desktop session, which will start remote desktop to a specific machine and then fill in the login credentials (username/password) I have tried to do this using send Keystrokes but is not working. Any one have any suggestions

Thanks

WshShell.Run("mstsc /v server

WScript.Sleep(1000)

'WshShell.AppActivate "mstsc"' /v server"

'WScript.Sleep(1000)

WshShell.SendKeys "username{TAB}password
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top