Skip to main content
Cadet | Tier 2
January 28, 2022
Question

VM locked screen during bot running. Please assist any setting to disable the VM locked screen during bot running.

  • January 28, 2022
  • 3 replies
  • 649 views

While executing the bot I am facing below issue..

Could you please help me on this..

 

    3 replies

    Cadet | Tier 2
    February 13, 2023

    What action can be performed to get out of lock screen before taking screenshot?

    rbkadiyam
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    February 13, 2023

    @RamyaM 

    I assume you  have this issue during unattended mode of running.

    Please make sure while disconnecting VM manually by Rt. click windows button and signout rather than disconnect. 

    Also try below 

     

    Step 1 : Have to use Regular deployment setting rather than RDP deployment

    Step 2:  Please run below script whenever you are login into bot runner vdi (no need to sign out, disconnect just execute below script)

                  --- Save file As DisconnectRDP_Lock.bat-------

    for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (

      %windir%\System32\tscon.exe %%s /dest:console

    )

    rem Rundll32.exe user32.dll, LockWorkStation

    Ramesh B Kadiyam