Powershell Script To Lock Computer After Inactivity, Example Here Create a Scheduled Task to Run PowerShell Script - SharePoint Diary.