Problem:
When running attended automation with Windows 11 Dynamic lock (Account > Sign-in options) enabled, the automation fails when the computer locks. This lock occurs because Dynamic lock feature uses Blue Tooth paired phone to detect when you leave the computer.
Question:
Is there a way to temporarily disable (perhaps using a setting in UiPath) or another way to temporarily disable the Windows 11 Dynamic lock feature and then re-enable this feature when the automation completes?
Solution:
I ended up adding a registry modification to programmatically disable and re-enable the Dynamic lock as shown in the following two PowerShell commands:
powershell -Command "Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'EnableGoodbye' -Value 0"
powershell -Command "Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'EnableGoodbye' -Value 1"
Feature Request:
I think it would be helpful to have a User Events activity to handle the Dynamic lock in a workflow, even though it may override associated security concerns!
Related: