Hi @David Jansen ,
minimized - most of the cases the bot will fail when you minimize the window because the screen resolution will changing but you can lock machine to while executing the process.
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/devices/rdp-deployment-multi-user-device.html
Hi @David Jansen
You have mentioned that the automation is Unattended. So, by saying that execution is not happening once the window gets minimised, is the user session active on that runner machine and you are performing the minimise action or the is it performing by the BOT?
If the User session is still active and if you are minizing the VM window, definitely it will backfire the BOT execution. Especially for Unattended execution, only BOT session is suggested on the Runner device.
You can double check the same by putting a Desktop capture action just infront of any of the Capture or Set text or Keystroke actions. If you are getting a black screen as the screenshot, you can confirm that the BOT session is getting interrupted by other active session on the same machine.
Let me know your observation on this.
Hi @David Jansen
Can you check whether you are getting any issues in unattended mode instead of minimizing the VM.
hi @ChanduMohammad, @Padmakumar , @Tamil Arasu10
I have checked the unattended mode is not having any issue
And no, i do not have black screen as the screenshot and i read some article about it that suggest to run a batch file to dissconnect the rdp and lock/logoff (i have not try this but i am asumming this would work, please do let me know if this is one of the solution)
I have also read that we can deploy the bot from one VM to another VM and it would work if we minimized the VM. i don’t actually understand this one so please elaborate me more on this if you understand about it as this seems to be the most simple one
hi @ChanduMohammad, @Padmakumar , @Tamil Arasu10
I have checked the unattended mode is not having any issue
And yes i do have black screen as the screenshot and read some article about it that suggest to run a batch file to dissconnect the rdp and lock/logoff (i have not try this but i am asumming this would work, please do let me know if this is one of the solution)
I have also read that we can deploy the bot from one VM to another VM and it would work if we minimized the VM. i don’t actually understand this one so please elaborate me more on this if you understand about it as this seems to be the most simple one
Hi @David Jansen
Please give a try on backscreen resolution, can you share the link where you have read about minimizing the vm?
hi @ChanduMohammad, @Padmakumar , @Tamil Arasu10
I have checked the unattended mode is not having any issue
And yes i do have black screen as the screenshot and read some article about it that suggest to run a batch file to dissconnect the rdp and lock/logoff (i have not try this but i am asumming this would work, please do let me know if this is one of the solution)
I have also read that we can deploy the bot from one VM to another VM and it would work if we minimized the VM. i don’t actually understand this one so please elaborate me more on this if you understand about it as this seems to be the most simple one
Hi @David Jansen
Please give a try on backscreen resolution, can you share the link where you have read about minimizing the vm?
hi @ChanduMohammad, @Padmakumar , @Tamil Arasu10
I have checked the unattended mode is not having any issue
And yes i do have black screen as the screenshot and read some article about it that suggest to run a batch file to dissconnect the rdp and lock/logoff (i have not try this but i am asumming this would work, please do let me know if this is one of the solution)
I have also read that we can deploy the bot from one VM to another VM and it would work if we minimized the VM. i don’t actually understand this one so please elaborate me more on this if you understand about it as this seems to be the most simple one
Hi @David Jansen
Please give a try on backscreen resolution, can you share the link where you have read about minimizing the vm?
Hi @ChanduMohammad
as far as i know the resolution should not be the issue since even we rescale the VM the bot still works fine, it might be me not catching what your are mentioning as i do not understand what is “backscreen resolution”
as for the link i actually remember reading it from a long time ago, but it was someone’s reply to a question and it was at apeople that is as far as i know and should not be available anymore. So i’m afraid i can’t search for the link
Hi @David Jansen ,
Please follow either of the below mentioned step to fix the issue.
- Logout through the Run prompt (Run→ Log-out)
or
- Use the enclosed .bat file to properly log-out from the runner machine.
Note: There should not be any other active session on the runner machine during the Unattended Bot execution.
Hi @David Jansen ,
If you still facing the issue, check the follow KB article in order to discard the referenced issue
https://apeople.automationanywhere.com/s/article/Insert-Keystrokes-Keystrokes-not-working-when-RDP-window-is-minimized
- Close all the Remote Desktop sessions opened on your computer (the parent machine).
- On the parent machine, click Start and select Run.
- In the Run dialog box, type "regedit" and press Enter, the Registry Editor opens.
- 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)
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Terminal Server Client
(if the machine is a 64-bit machine)
- Create a new DWORD value in this key named RemoteDesktop_SuppressWhenMinimized and specify 2 as the value data.
- Reboot the parent machine (this is a mandatory requirement)
Regards.
HTH
Hi @David Jansen ,
If you still facing the issue, check the follow KB article in order to discard the referenced issue
https://apeople.automationanywhere.com/s/article/Insert-Keystrokes-Keystrokes-not-working-when-RDP-window-is-minimized
- Close all the Remote Desktop sessions opened on your computer (the parent machine).
- On the parent machine, click Start and select Run.
- In the Run dialog box, type "regedit" and press Enter, the Registry Editor opens.
- 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)
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Terminal Server Client
(if the machine is a 64-bit machine)
- Create a new DWORD value in this key named RemoteDesktop_SuppressWhenMinimized and specify 2 as the value data.
- Reboot the parent machine (this is a mandatory requirement)
Regards.
HTH
Hi @Raul Jaimes
thanks for the suggestion, i’ve opened AA support ticket and they also gave this article for the solution, even though in the end the problem was apparently not because of the RDP getting minimized but this is for sure is the solution for the title i posted.
thank you for all the answer for this post
check attached documentation for this issue.