Skús sa pozrieť sem:https://www.groovypost.com/howto/make-windows-10-lock-automatically-after-a-set-amount-of-inactivity/