Page 1
Standard

Command-line Powercfg

The following command-line options are available for powercfg.

powercfg [-l ] [-q ] [-x ] [-changename ] [-duplicatescheme ] [-d ] [-deletesetting ] [-setactive ] [-getactivescheme ] [-setacvalueindex ] [-setdcvalueindex ] [-h ] [-a ] [-devicequery ] [-deviceenablewake ] [-devicedisablewake ] [-import ] [-export ] [-lastwake ] [-?] [-aliases ] [-setsecuritydescriptor ] [-getsecuritydescriptor ]

So having delved into this utility a little more – here are my top commands for powercfg ready to use in your scripts:

sets the power configuration to High Performance
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

tweaks the basic power settings
powercfg -change -hibernate-timeout-ac 0
powercfg -change -hibernate-timeout-dc 0

turns hibernation off
powercfg -hibernate OFF

require password when console wakes up (0=false, 1=true)
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c fea3413e-7e05-4911-9a71-700331f1c294 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 0
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c fea3413e-7e05-4911-9a71-700331f1c294 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 0

also needed to show up on Power Menus…
powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e fea3413e-7e05-4911-9a71-700331f1c294 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 0
powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e fea3413e-7e05-4911-9a71-700331f1c294 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 0

power plan type (0=power saver, 1=high performance, 2=balanced)
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c fea3413e-7e05-4911-9a71-700331f1c294 245d8541-3943-4422-b025-13a784f679b7 1
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c fea3413e-7e05-4911-9a71-700331f1c294 245d8541-3943-4422-b025-13a784f679b7 1

hard disk timeout
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 0012ee47-9041-4b5d-9b77-535fba8b1442 6738e2c4-e8a5-4a42-b16a-e040e769756e 0
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 0012ee47-9041-4b5d-9b77-535fba8b1442 6738e2c4-e8a5-4a42-b16a-e040e769756e 0

wireless adapter power (0=max perf, 1=low power saving, 2=med power saving, 3=max power saving)
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 19cbb8fa-5279-450e-9fac-8a3d5fedd0c1 12bbebe6-58d6-4636-95bb-3217ef867c1a 0
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 19cbb8fa-5279-450e-9fac-8a3d5fedd0c1 12bbebe6-58d6-4636-95bb-3217ef867c1a 0

sleep timeout
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 0
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 0

close action (0=do nothing, 1=sleep, 2=hibernate, 3=shutdown)
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0

also needed to show up on Power Menus…
powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0

processor power cstate (0,1=power saver, 2,3=balanced, 4,5=high perf)
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 68f262a7-f621-4069-b9a5-4874169be23c 4
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 68f262a7-f621-4069-b9a5-4874169be23c 4

minimum processor state
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 893dee8e-2bef-41e0-89c6-b55d0929964c 100
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 893dee8e-2bef-41e0-89c6-b55d0929964c 100

processor power perfstate settings
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 bbdc3814-18e9-4463-8a55-d197327c45c0 4
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 bbdc3814-18e9-4463-8a55-d197327c45c0 4

monitor timeout
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 7516b95f-f776-4464-8c53-06167f40cc99 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 7516b95f-f776-4464-8c53-06167f40cc99 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0

multimedia settings (0=take no action, 1=prevent computer from sleeping, 2=enable away mode)
powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 03680956-93bc-4294-bba6-4e0f09bb717f 2
powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 03680956-93bc-4294-bba6-4e0f09bb717f 2

set the absentia power scheme (the scheme used when no one is logged in)
powercfg -setabsentia 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

Standard

Control Panel Applets and Command Line Launch

Here is a list of Control Panel command line syntax for Windows 8 and Windows Server 2012.

Control Panel Applet Command
Action Center control /name Microsoft.ActionCentercontrol wscui.cpl
Add Features to Windows 8 control /name Microsoft.WindowsAnytimeUpgrade
Administrative Tools control /name Microsoft.AdministrativeToolscontrol admintools
AutoPlay control /name Microsoft.AutoPlay
Biometric Devices control /name Microsoft.BiometricDevices
BitLocker Drive Encryption control /name Microsoft.BitLockerDriveEncryption
Bluetooth Devices control bthprops.cpl
Color Management control /name Microsoft.ColorManagement
Credential Manager control /name Microsoft.CredentialManager
Date and Time control /name Microsoft.DateAndTimecontrol timedate.cplcontrol date/time
Default Programs control /name Microsoft.DefaultPrograms
Device Manager control /name Microsoft.DeviceManagercontrol hdwwiz.cpldevmgmt.msc
Devices and Printers control /name Microsoft.DevicesAndPrinterscontrol printers
Display control /name Microsoft.Display
Ease of Access Center control /name Microsoft.EaseOfAccessCentercontrol access.cpl
Family Safety control /name Microsoft.ParentalControls
File History control /name Microsoft.FileHistory
Flash Player Settings Manager control flashplayercplapp.cpl
Folder Options control /name Microsoft.FolderOptionscontrol folders
Fonts control /name Microsoft.Fontscontrol fonts
Game Controllers control /name Microsoft.GameControllerscontrol joy.cpl
Get Programs control /name Microsoft.GetPrograms
Home Group control /name Microsoft.HomeGroup
Indexing Options control /name Microsoft.IndexingOptions
Infrared control /name Microsoft.Infraredcontrol irprops.cplcontrol /name Microsoft.InfraredOptions
Internet Options control /name Microsoft.InternetOptionscontrol inetcpl.cpl
iSCSI Initiator control /name Microsoft.iSCSIInitiator
Keyboard control /name Microsoft.Keyboardcontrol keyboard
Language control /name Microsoft.Language
Location Settings control /name Microsoft.LocationSettings
Mail control mlcfg32.cpl
Mouse control /name Microsoft.Mousecontrol main.cplcontrol mouse
Network and Sharing Center control /name Microsoft.NetworkAndSharingCenter
Network Connections control ncpa.cplcontrol netconnections
Network Setup Wizard control netsetup.cpl
Notification Area Icons control /name Microsoft.NotificationAreaIcons
Offline Files control /name Microsoft.OfflineFiles
Pen and Touch control /name Microsoft.PenAndTouchcontrol tabletpc.cpl
Performance Information and Tools control /name Microsoft.PerformanceInformationAndTools
Personalization control /name Microsoft.Personalizationcontrol desktop
Phone and Modem control /name Microsoft.PhoneAndModemcontrol telephon.cpl
Power Options control /name Microsoft.PowerOptionscontrol powercfg.cpl
Printers and Faxes control printers
Programs and Features control /name Microsoft.ProgramsAndFeaturescontrol appwiz.cpl
Recovery control /name Microsoft.Recovery
Region control /name Microsoft.RegionAndLanguagecontrol intl.cplcontrol international
RemoteApp and Desktop Connections control /name Microsoft.RemoteAppAndDesktopConnections
Scanners and Cameras control /name Microsoft.ScannersAndCameras
Screen Resolution control desk.cpl
Sound control /name Microsoft.Soundcontrol mmsys.cpl
Speech Recognition control /name Microsoft.SpeechRecognition
Storage Spaces control /name Microsoft.StorageSpaces
Sync Center control /name Microsoft.SyncCenter
System control /name Microsoft.System
System Properties control sysdm.cpl
Tablet PC Settings control /name Microsoft.TabletPCSettings
Task Scheduler control schedtasks
Taskbar control /name Microsoft.Taskbarrundll32.exe shell32.dll,Options_RunDLL
Taskbar and Start Menu control /name Microsoft.TaskbarAndStartMenurundll32.exe shell32.dll,Options_RunDLL
Text to Speech control /name Microsoft.TextToSpeech
Troubleshooting control /name Microsoft.Troubleshooting
User Accounts control /name Microsoft.UserAccountscontrol userpasswords
Windows 7 File Recovery control /name Microsoft.BackupAndRestore
Windows Anytime Upgrade control /name Microsoft.WindowsAnytimeUpgrade
Windows CardSpace control /name Microsoft.CardSpacecontrol infocardcpl.cpl
Windows Defender control /name Microsoft.WindowsDefender
Windows Firewall control /name Microsoft.WindowsFirewallcontrol firewall.cpl
Windows Mobility Center control /name Microsoft.MobilityCenter
Windows Sidebar Properties control /name Microsoft.WindowsSidebarProperties
Windows SideShow control /name Microsoft.WindowsSideShow
Windows Update control /name Microsoft.WindowsUpdate