RUN THE CODEDUI TESTS ON VIRTUAL MACHINES(EVEN WHEN VIRTUAL MACHINES ARE IN MINIMIZED STATE), AND WORKING SIMULTANEOUSLY ON VIRTUAL MACHINES AND ON LOCAL MACHINE DO AS FOLLOW.
1) Close all the Remote Desktop sessions opened on your computer.
2) In your local machine click Start and select Run. In the Run dialog box, type regedit and press Enter. The Registry Editor starts.
3) Locate any of the following Registry keys:
HKEY_CURRENT_USER -----> Software -----> Microsoft-----> Terminal Server Client
(if you want to change the RDC settings for your user account)
— or —
HKEY_LOCAL_MACHINE -----> Software -----> Microsoft -----> Terminal Server Client
(if you want to change the RDC settings for all accounts)
Right click on the 'Terminal Server Client' and select 'New' ---> 'DWORD Value' ---> Give the name as ---> RemoteDesktop_SuppressWhenMinimized. ----> Right click on this name and select 'modify' ---> In the popup enter the 'Value data' as '2'
That’s all. Now minimizing the RDC window on your computer will not affect the remote computer’s GUI and the GUI will still be available to your automated GUI tests.