How to prevent windows from getting Lock?

I have a do while loop which contains some element exist which checks the file run status , the do while loop only breaks when the file run is completed, the run takes apprx 2.5 to 3 hours and after that i get the output , the problem is the VDI System gets lock in few minutes and i dont want that i want it to be awake

is there anyway to prevent windows from getting lock ?

the element exist works even when windows is locked but this will cause me probems as after the run is completed i want to do some data extraction and some data filling part in a web portal

now as the VDI gets locked it is password protected so need to unlock with the password

is there any activity i can use?

You would need to configure the server so that it doesn’t get locked.

Hi

Hope the below methods would help resolve this

  1. Inside that loop in UiPath, make sure you’re using activities with Simulate Type or Simulate Click properties enabled when interacting with the system.
    Simulated activities are less likely to trigger the system to lock.

  2. Adjust the power settings on the VDI system to prevent it from going into sleep or lock mode.
    Go to “Control Panel” > “Power Options” and set the “Put the computer to sleep” option to “Never.”
    If you’re accessing the VDI system remotely, make sure your remote desktop client settings are configured not to lock the remote session on idle.

Cheers @indiedev91

Should i just add a click activity that clciks at a random point on the screen, this probably just prevent it from locking the system ?

1 Like

Yeah that should be fine but don’t click on any element in specific that doesn’t change the layout or even the page

Like click on taskbar somewhere

Cheers @indiedev91

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.