How to enable auto windows login?


Hi All - How to enable automatic windows login on runtime resources via login agent so that they are always available. Currently, I enabled 'AutoAdminLogon' via registery editor and provided hard-coded values but I don't believe this is a good practice. Is there a way to use login agent to automatically login to a windows machine on start up? Can this be done via windows task scheduler? How can i set it up?

Also, I might have to retrieve windows credentials from Cyberark down the line. Is it possible to edit login agent to automatically retrieve cyber ark credentials and enable windows auto-login? If so, can anyone share the steps.

Thanks in advance!