Changing the Lock Screen Timeout when running on AC power To change the Lock screen timeout using Command Prompt, do the following: Type in to the search box Command.
Here is how to change the Lock Screen Timeout on Windows 10 using the command prompt. I’m going to use screenshots where possible, but you should definitely check out the PDQ Deploy videos.
Script Name:Set-Screen.ps1 Script Parameters:(change it to your own lock image and background image path):-LockScreenSource "\\SERVER-FS01\LockScreen.jpg" -BackgroundSource "\\SERVER-FS01\BackgroundScreen.jpg"** Click Show files, and copy the script you download into this location.Remove the Lock Screen on Windows 10 Home. I have a run command line step that strings all this together.Under the Powershell script click add. You'd have a "Run PowerShell Script" Step, that points to the Script: Set-LockScreen.ps1, and the package would include both the lockscreen.jpg & the powershell script Set-LockScreen.ps1. press the Windows key and the L key at the same time to lock your session.
This is further not pure PowerShell code - well it is but actually the key stroke is send via a Windows Scripting Host WSH / WScript command SendKeys.Script - Change Desktop and Lock Screen Download Package. If the script would fire in a minute interval, there is a theoretical chance the screensaver would still win. Simple - Windows has a minimum setting of 1 minute that an screensaver can come up.