Güç

How to change Sleep Timeout using PowerCFG command line in Windows 10

How to change Sleep Timeout using PowerCFG command line in Windows 10

One of the most annoying features in Windows 10 for desktop computers is the sleep timeout, which is the time period after which your computer enters energy-saving sleep mode. This time period can be too long for some users, making it difficult to leave their computers open to check on something later.

For some, it's a drawback because it drains on the battery, which can get in the way of your work if you have a lot to do. While you can use Power Options' user interface, here is how to do it quickly using the powercfg command-line tool in Windows 10.

Change Sleep Timeout using PowerCFG

If you want to disable the computer's sleep timeout or standby quickly, then execute the following command. It will change the setting for the current power profile. Make sure to execute them on command prompt or PowerShell with admin permission.

powercfg /change standby-timeout-ac 0 powercfg /change standby-timeout-dc 0

If you want to change it for any of the existing plans, we will need to use GUIDs of the schemes and AC and DC parameters. You can also use this command to set the timeout in minutes.

The first step is to run the powercfg /list to find all the GUIDs of the Power Schemes on the computer.

Next, execute the below-mentioned command by replacing and with appropriate values.

Also note that the setacvalueindex is when the computer is plugged, and setdcvalueindex is when it's on battery.

When on Power

powercfg -setacvalueindex  238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 

When on Battery

powercfg -setdcvalueindex  238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 

I hope the post helped you change the sleep timeout using the powercfg command. It would be best to create a batch file and execute it with admin permission every time you need to change it.

WinMouse lets you customize & improve mouse pointer movement on Windows PC
If you want to improve the default functions of your mouse pointer use freeware WinMouse. It adds more features to help you get the most out of your h...
Mouse left-click button not working on Windows 10
If you are using a dedicated mouse with your laptop, or desktop computer but the mouse left-click button is not working on Windows 10/8/7 for some rea...
Cursor jumps or moves randomly while typing in Windows 10
If you find that your mouse cursor jumps or moves on its own, automatically, randomly while typing in Windows laptop or computer, then some of these s...