Lock Screen Commands Do Not Work

Martin Leather 6 Reputation points
2023-04-04T17:20:05.09+00:00

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. User's image

User's image

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,681 Reputation points
    2023-04-04T18:01:28.4033333+00:00

    This works for me for the Screen (Windows 10 22H2) : powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 300

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.