Teho

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.

Suosituimmat Oculus App Lab -pelit
Jos olet Oculus-kuulokemikrofonin omistaja, sinun täytyy olla tietoinen sivulatauksesta. Sivulataus on prosessi, jolla ei-kaupallista sisältöä asennet...
Top 10 Games to Play on Ubuntu
Windows platform has been one of the dominating platforms for gaming because of the huge percentage of games that are developing today to natively sup...
5 parasta arcade-peliä Linuxille
Nykyään tietokoneet ovat vakavia koneita, joita käytetään pelaamiseen. Jos et pääse uusiin korkeisiin pisteisiin, tiedät mitä tarkoitan. Tässä viestis...