Awesum Stuff

How to Connect to Remote Machine with VBScript ?

Many a times we need to execute a QTP script on a (virtual) machine. Now in order for this script to run, the machine should be logged in. In case it is not, you can use the following method that I use :-

Set WshShell=CreateObject(“Wscript.Shell”)

VMName=”any_machine”

wshShell.Run(“C:\LaunchRDP ” & vmName &” 3389 username domain password 0 0 0″)

Set Wshell=Nothing

For this to work, you need to put the download the exe from the following link and put it in C drive or any other path(provided you change the location in the code above)

http://www.softpedia.com/get/Internet/Remote-Utils/Launch-RDP.shtml

 

Happy Automating !

Harshit Kohli

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s