You can change Windows power settings from the command line using powercfg, the built-in power configuration tool that ships with Windows. Type powercfg /list in Command Prompt to see every power plan on the machine, then powercfg /setactive followed by a plan's GUID to switch to it. Nothing needs to be installed, and the same tool works on Windows 10 and Windows 11. Because some of these commands touch sleep, hibernate and wake behaviour, it helps to know what each switch does before you run it.
What You'll Need
- A Windows 10 or Windows 11 PC where you can sign in as an administrator.
- Command Prompt opened as administrator (right-click the Start button and choose Terminal (Admin) or Command Prompt (Admin) depending on your build). Some read-only commands work without elevation, but changing settings requires it.
- The GUID of the power plan you want to work with. You get this from the list command below, so you do not need to look it up in advance.
- A note of your current settings if you plan to change anything, so you can put them back later.
Menu labels, option names and power scheme names can differ slightly between Windows versions, editions and regions, and on laptops the manufacturer often adds its own plans and hides some defaults. Where the exact wording matters, run the command that lists options rather than trusting a name you remember.
Step-by-Step
- Open an elevated Command Prompt. Right-click Start and pick Terminal (Admin) or Command Prompt (Admin). Confirm the user account control prompt. The window title should show Administrator; without it, write commands will fail with an access-denied message.
- List the available power plans. Type
powercfg /listand press Enter. You get every scheme with its GUID in curly braces, for example something like381b4222-f694-41f0-9685-ff5bb260df2efor Balanced. A star marks the active plan. Copy the GUID exactly, braces included, if you plan to reuse it. - See which plan is active. The same output shows the active scheme. You can also open Settings > System > Power & battery (Windows 11) or Settings > System > Power & sleep (Windows 10) to cross-check which plan Windows is applying. Note that on some laptops this menu only shows a simplified mode selector rather than full plans.
- Switch plans. Type
powercfg /setactivethen a space and the GUID, for examplepowercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e. Press Enter. Runpowercfg /getactiveschemeto confirm the change took effect. You can also pass a plan name in quotes, but GUIDs are safer because names vary by language and are often renamed by PC makers. - Duplicate a plan before you customise it. Commands like
powercfg /duplicateschemefollowed by a GUID create a copy you can edit freely, leaving the original intact. Copying the Balanced plan is the common approach. The tool prints the new plan's GUID, which you should record. - Adjust individual settings. To change when the display turns off on AC power, use
powercfg /change monitor-timeout-ac 10, where the number is minutes. The equivalents aremonitor-timeout-dcfor battery,standby-timeout-acandstandby-timeout-dcfor sleep, anddisk-timeout-acanddisk-timeout-dcfor hard disks. A value of 0 means never. - Turn features on or off.
powercfg /hibernate onorofftoggles hibernation and the related fast startup file.powercfg /alists which sleep states the hardware and current settings support, which is the fastest way to find out why a sleep option is missing from the Start menu. - Report battery health.
powercfg /batteryreportwrites an HTML file to your user folder with design capacity against current capacity.powercfg /energyruns a short analysis and saves an HTML report of settings that waste power or cause errors. - Undo anything you changed. Re-run
powercfg /setactivewith the original plan's GUID, or delete a custom copy withpowercfg /deleteand its GUID. Deleting a plan is permanent, so confirm you are not removing the active scheme.
Common Mistakes
- Running commands in a normal window. Read commands work, but most writes silently fail or return access denied without administrator rights.
- Typing the GUID without braces or with a typo. A single wrong character makes the command fail or, worse, target nothing useful. Paste from the list output rather than retyping.
- Expecting changes to appear instantly in Settings. Refresh the Settings page or reopen it. Some manufacturer power apps cache the old values.
- Disabling hibernate on a laptop you rely on. Doing so removes fast startup too and can remove the Hibernate entry from the power menu. It is not a speed fix for most problems.
- Changing sleep timeouts on a desktop and wondering why the screen still locks. Screen lock and sign-in requirements are security settings, not power settings, and live elsewhere.
Tips
- Save your original plan's GUID in a text file so restoring takes one command.
- Use
powercfg /setactivein a small batch file to switch between a presentation plan and a normal one with one double-click. - Check
powercfg /abefore troubleshooting sleep; it explains in plain text why a state is unavailable, such as a disabled setting or a driver limitation. - Prefer duplicating a plan over editing a built-in one, so a repair install or update cannot quietly reset your changes.
- If a change seems ignored, confirm you edited the AC or DC value that matches how the device is actually running.
Troubleshooting
If that did not work, start with the simplest checks. Close and reopen the elevated prompt, confirm you are signed in as an administrator, and run powercfg /list again to be sure of the GUID. Restart the PC if a setting will not stick.
If powercfg is not recognized, type the command from System32 by using the full path, or open Command Prompt from the Start menu search instead of a third-party shell. If a command returns access denied even in an elevated window, a group policy set by your organisation may be locking power settings; that is common on work-managed machines and cannot be overridden locally.
If sleep or hibernate options have vanished, run powercfg /a, then re-enable hibernation and reboot. If a plan change is undone after every restart, look for a manufacturer power utility that reapplies its own profile at startup and adjust it there instead. For a device that will not wake on schedule or shuts down unexpectedly, the energy report is the better starting point than guesswork.
Frequently Asked Questions
Do I need to install anything?
No. powercfg is included with Windows. There is no separate download and no official app store package to fetch.
Is it safe to change power settings this way?
Yes, for the commands described here. Avoid copying random command lines from forums, since some switches change deeper firmware or device behaviour. Revert anything unexpected by reactivating your original plan.
Why do I see different plan names than a guide shows?
Laptop makers and Windows editions add, rename or hide plans. Use the GUIDs from your own powercfg /list output rather than names.
Can this fix a laptop that drains power in sleep?
It can help you investigate. The battery and energy reports and the sleep state list are the relevant tools, but a hardware or driver cause may still need the manufacturer's support.
Does the command affect a connected desktop monitor?
No. It affects the PC's own display timeout and sleep behaviour. The monitor's own power saving is set on the monitor itself.
What if I deleted the wrong plan?
Built-in plans can usually be restored by running a reset command with the default GUID for that plan. A custom duplicate you deleted cannot be recovered and must be recreated.