Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off power saving options via command line

On Windows XP, the following command in a script will prevent any power saving options from being enabled on the PC (monitor sleep, HD sleep, etc.). This is useful for kiosk applications.

powercfg.exe /setactive presentation

What is the equivalent on Vista?

like image 249
Nick Avatar asked Oct 31 '08 16:10

Nick


People also ask

How do I turn off power-saving mode in CMD?

Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to enable hibernation on Windows 10 and press Enter: powercfg /hibernate off.

How do I turn off power save options?

To quickly turn off power-saving mode entirely: Click the battery icon on the right side of the Taskbar. Select Battery settings. Scroll down to the Battery saver section, and disable the check box next to Turn battery saver on automatically if my battery falls below.

What is powercfg off command?

Updated: 12/30/2021 by Computer Hope. The powercfg command allows users to view and modify their Windows computer's power plans and settings. Using powercfg provides similar control over the power settings as does the Windows Power Options utility.

What does powercfg do in CMD?

Powercfg.exe is a command-line utility that is used from an elevated Windows Command Prompt to control all configurable power system settings, including hardware-specific configurations that are not configurable through the Control Panel, on a per-user basis.


2 Answers

(at least) for windows 7:

Nice Shortcuts are:

  • powercfg -ALIASES # Lists named aliases for available profiles.
  • powercfg -S SCHEME_MIN #Activates the (High-Performance) Scheme with the alias SCHEME_MIN
  • powercfg -S SCHEME_MAX #Activates the (Max-Energie-Saving) Scheme with the alias SCHEME_MAX
  • powercfg -S SCHEME_BALANCED # ... Balanced Energie Scheme

cheers

Kai

like image 129
kai klein Avatar answered Oct 19 '22 06:10

kai klein


C:\Windows\system32>powercfg /list

Existing Power Schemes (* Active)

Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) *

Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance)

Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)

C:\Windows\system32>powercfg /setactive a1841308-3541-4fab-bc81-f71556f20b4a

like image 29
user15071 Avatar answered Oct 19 '22 07:10

user15071