Prevent system from locking - Windows OS
There might have been instances when you would not want your system to get locked on its own. Especially If you are an automation engineer you know where I am coming from.
The best possible way to do this is :
1 – Disable Lock Workstation
0 – Enable Lock Workstation
The changes should be immediate, no need to restart anything.
2. In most companies they would not allow you to modify the registry , the best workaround is :If Windows Media Player is still installed, you can play a video on loop and minimize it (the sample "Wildlife" videos work fine for this). By default, as long as a video is playing, the screen won't lock.
Note - This also works using VLC for those who prefer it over Windows Media Player