Powercfg command on Windows allows users to configure power settings on laptops/desktops. Using this command we can configure settings related to idle timers, low battery alarms, hibernate/sleep timers etc.
Get the current active scheme details:
powercfg -getActiveScheme
Example:
c:\>powercfg -getActiveScheme Power Scheme GUID: 4ac93938-c0ab-4b33-9150-b71bf11e59d3 (Maximum Battery Life) c:\>
List the power schemes available on the system
c:\>powercfg /list Existing Power Schemes (* Active) ----------------------------------- Power Scheme GUID: 01360e7e-525f-4625-ab94-f283dcfbd515 (Maximum Performance) Power Scheme GUID: 25703703-e852-4c6a-b8d5-b36dd2e3f757 (Timers off (Presentation)) Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) Power Scheme GUID: 4ac93938-c0ab-4b33-9150-b71bf11e59d3 (Maximum Battery Life) * Power Scheme GUID: 6aea82bd-cf7f-424c-aee8-7dba1ee06330 (Video Playback) Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance) Power Scheme GUID: 8ce8c17f-8bb0-4d23-98d1-ae3311cbee5a (Power Source Optimized) Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)
Set active power scheme
powercfg -setactive scheme-guid
(or)
powercfg -s scheme-guid
Example:
c:\>powercfg -GETACTIVESCHEME Power Scheme GUID: 4ac93938-c0ab-4b33-9150-b71bf11e59d3 (Maximum Battery Life) c:\>powercfg -setactive a1841308-3541-4fab-bc81-f71556f20b4a c:\>powercfg -GETACTIVESCHEME Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)
Get the current scheme settings:
powercfg /query
Adding users from command line is much easier than going through the UI. It saves…
Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…
We can kill a process from GUI using Task manager. If you want to do…
Chrome is definitely the stable browser compared to other ones and it has been my…
Windows has multiple command line utilities that can help find the version of the Windows…
There are multiple ways to check whether a Windows computer is running 32-bit OS or…
View Comments
This has NO working examples.
It worked for me, stop being a n00b.