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 :-
wshShell.Run(“C:\LaunchRDP ” & vmName &” 3389 username domain password 0 0 0″)
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)
Happy Automating !
Categories: Awesum Stuff