I am running the UiPath Community Version on my Azure VM. I have scheduled some processes on the machine. The problem I am facing is that when I close the RDC connection, the machine gets locked instantly. When machine gets locked the processes that runs foreground fails. Can anyone guide me with any solution that can help? Thanks in advance.
Its windows 11 that is running and enabled all the options to keep machine unlock but still when I close it. The machine gets locked instantly.
To prevent
Azure Windows VMfrom locking the screen when you disconnect from aRDP session, you can modify the Group Policy settings on the Azure VM. Here are steps the to follow.Open run and type gpedit.msc
In the Group Policy Editor, navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits.
Click on "Set time limit for disconnected sessions" policy setting.
Select the Enabled option.
Set the time limit to Never.
Click OK to save the changes.
When I execute the
PowerShellscript on anAzure VMand close theRDP, then reopen it to check if the script is still running, I find that the script is still running, as shown below.This will disable screen locking on
Windowswhen disconnecting fromRemote Desktop, but consider security implications for public network access or sharedVMusage.Reference : How to keep an RDP session alive?