This works for me for the Screen (Windows 10 22H2) :
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 300
Lock Screen Commands Do Not Work
I'm attempting to use command prompt to change the lock screen setting on my Windows 10 workstation, but the suggested commands are simply not working:
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 300
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 300
powercfg.exe /SETACTIVE SCHEME_CURRENT
I need to use command prompt or PowerShell for this, because I am writing a script that will be applied to numerous workstations that are not part of DC controlled environment, therefore I do not have Group Policy at my disposal.
The command above should change my lock screen / display off to 300 seconds (5 minutes), and I should expect to see changes in "Power and Sleep" as well as "Additional Power Settings", but I do not. It is almost as if this command is simply not valid anymore. Rebooting my PC provides no change. If this is the wrong command, then there are dozens and dozens of support resources, both Microsoft and third-party, who are distributing incorrect information.
Please tell me what I'm doing wrong.
Windows for business | Windows Client for IT Pros | User experience | Other
1 answer
Sort by: Most helpful
-
Castorix31 90,681 Reputation points
2023-04-04T18:01:28.4033333+00:00