You can change Windows power settings from Command Prompt, but most of what people want — a balanced, high performance or power saver plan — is done with the powercfg tool, not with a single "power" command. The quickest working set is: open Command Prompt, run powercfg /list to see the plan GUIDs, then run powercfg /setactive GUID to switch. Everything else, from screen timeouts to hibernate, is a subcommand of the same tool. This guide walks through the commands that actually exist in Windows 10 and Windows 11, plus the parts that trip people up.

One note before you start: menu labels and output wording can differ slightly between Windows versions and editions. The commands below are the same, but the plan names or GUIDs shown on your machine may not match the examples exactly. Always copy the GUID from your own powercfg /list output rather than the one printed here.

What You'll Need

  • A Windows 10 or Windows 11 PC. The built-in powercfg command is present in both; it is not part of macOS or Linux.
  • Administrator rights for most settings changes. Opening Command Prompt as administrator saves a round of "access denied" messages.
  • A few exact names or GUIDs from your own system. Run the list command first and keep the output visible.
  • Optional: a note of your current power plan, so you can switch back if a change has an unwanted side effect.

Step-by-Step

  1. Open Command Prompt as administrator. Press the Windows key, type cmd, then choose "Run as administrator" from the results. On Windows 11 the option may sit under a right-click menu on the Command Prompt entry. Click Yes at the User Account Control prompt. A plain Command Prompt works for read-only commands like listing plans, but changes will fail without elevation.
  2. List the available power plans. Type powercfg /list and press Enter. You will see each plan, a GUID in braces such as {381b4222-f694-41f0-9685-ff5bb260df2e} (that one is Balanced on a typical install), and a star or "(current)" marker next to the active plan. Copy the GUID of the plan you want. Do not retype it from memory — a single wrong character makes the command fail.
  3. Activate the plan you want. Type powercfg /setactive GUID, replacing GUID with the value you copied, braces included. For example: powercfg /setactive {8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c} switches to High performance on a standard installation. Press Enter. A silent return to the prompt means success; run powercfg /getactivescheme to confirm which plan is now live.
  4. Check or change individual timeouts. Power plans are really bundles of settings. To see the current monitor and sleep timeouts for the active plan, run powercfg /query. The output is long, so look for the video and standby timeout entries, or use powercfg /query SCHEME_CURRENT SUB_VIDEO to narrow it to display settings. Each setting has a hexadecimal value where the number is seconds. You can set one without touching the rest of the plan using powercfg /change monitor-timeout-ac 10, powercfg /change standby-timeout-ac 30, and the matching -dc versions for battery power.
  5. Turn hibernation on or off. Hibernation is controlled with powercfg /hibernate on or powercfg /hibernate off. When enabled, it creates a hidden system file on your drive, which uses disk space roughly in line with your installed memory. Turning it off removes that file — a useful step if you are short on storage, but Fast Startup depends on hibernation, so it will also be disabled.
  6. See what is keeping the PC awake. Run powercfg /requests to list processes and drivers that have requested the system stay on. Run powercfg /energy to produce an HTML report of energy and configuration problems; the report is written to the current folder unless you add /output with a path. This is the practical answer to "why did my laptop not sleep" and it often points at an audio driver, a media player or a network adapter.
  7. Roll back if needed. Run powercfg /setactive with the GUID of your original plan, or use the Settings app under System > Power (the exact wording and layout differ between Windows 10 and 11) to pick a plan from the list. Nothing you change here is permanent unless you want it to be.

If you would rather not use the command line, the same plan switching is available in the Settings app, and on many laptops the manufacturer's own utility also exposes power modes. The command is simply faster and works in scripts and remote sessions.

Common Mistakes

  • Typing the plan name instead of the GUID. /setactive expects the GUID. Some versions accept an alias such as SCHEME_MIN for the minimum plan, but relying on that is inconsistent; use the GUID from your own list.
  • Dropping the braces. The GUID includes curly braces. Leaving them off is one of the most common reasons the command returns an error.
  • Running without administrator rights. Listing works, changing does not. Use the elevated prompt.
  • Assuming a "power" command exists. There is no standalone power command for this. The tool is powercfg, and on modern Windows it may be written as powercfg.exe.
  • Setting AC values and expecting battery behaviour to change. Settings are split between plugged-in (AC) and on-battery (DC). Change both if you want both.
  • Disabling hibernation and wondering why Fast Startup vanished. The two are linked; that is expected, not a fault.

Tips

  • Save the output of powercfg /list in a text file so you always have the GUIDs to hand, especially on machines where you switch often.
  • Use powercfg /query to discover the exact setting aliases before you script a change, rather than guessing at names.
  • On a desktop, High performance is usually harmless. On a laptop it drains the battery faster and can run warmer, so keep it for plugged-in work.
  • Combine commands into a small batch file if you regularly switch between "plugged in, no sleep" and "on battery, aggressive sleep" setups.
  • If a script must run unattended, check the exit by following a change with powercfg /getactivescheme, since successful changes print nothing.

Troubleshooting

"Access is denied" when setting a plan. You are almost certainly in a non-elevated prompt. Close it and reopen Command Prompt as administrator, then try again.

"Invalid argument" or "Unable to perform operation". Check the GUID character by character, including the braces, and confirm it came from this machine's list. Copy and paste rather than retyping.

A custom plan was deleted or is missing. Manufacturers and updates sometimes remove custom plans. You can recreate a duplicate with powercfg /duplicatescheme GUID, giving it a new identity, or simply activate one of the built-in plans again.

Changes do not stick after a restart. Group Policy or a manufacturer utility may be overriding the plan. Check with your IT administrator on a managed device, and check the laptop maker's power software, since many of those tools reapply their own mode on startup.

The PC still will not sleep. Run powercfg /requests while the problem is happening. If a device or app is listed, close it or update its driver. If the list is empty but sleep still fails, the cause is usually a device driver rather than a power setting.

Commands are not recognised at all. Confirm you are in a standard Windows Command Prompt and not a restricted shell. Run where powercfg; on a normal installation it should be found in the System32 folder.

Frequently Asked Questions

Is there a single "power" command in Command Prompt?

No. Power management is handled by powercfg. Anything you may have read about a plain power command is either a different tool entirely or a misunderstanding.

Do I need administrator rights?

For viewing plans and settings, no. For changing the active plan, editing timeouts or toggling hibernation, yes.

What is a GUID and why does the command need one?

It is the unique identifier for a power plan on your PC. Names can be duplicated or localised, so Windows uses the GUID to know exactly which plan you mean.

Can I change sleep timeouts for battery and mains separately?

Yes. The -ac suffix applies to plugged-in power and -dc to battery, so you can set different values for each.

Will changing the power plan affect my data?

No. Plan changes only alter how hardware behaves, such as when the screen turns off or the PC sleeps. The one exception is turning hibernation off, which deletes the hibernation file and disables Fast Startup.

Does this work on Windows Home editions?

The command prompt tool is present on Home editions too, but some plans, particularly Ultimate Performance, may not appear by default. Built-in Balanced, Power saver and High performance are the usual ones available.