How to open Remote desktop sessions for MultiplePC
My requirement is:
There will be an excel sheet with more then 40machine names (example:abcd1010, abcc1020 etc) along with the OpenFlag-Yes/No)
I need to write a qtp script to open multiple RDP Sessions(Remote desktop sessions) for the machines with Flag-Yes. If the RDP sessions are already open, need to throw a reporter event saying that RDP session is already open.
Can anyone please help me out how to write qtp code for thisASAP?
Re: How to open Remote desktop sessions for MultiplePC
RDP can be opened through the command line using "mstsc".
mstsc has various command line options including one to specify a server/port to connect to.
I would import your excel spreadsheet into a data table on the fly, then for each row in the datatable use descriptive programming and regex to check if the RDP is already open and if not use the SystemUtil.Run command to start an RDP connection to the desired server.
Hope this makes sense.