You can manage Windows power settings from PowerShell using the built-in powercfg utility, which PowerShell can call directly. There is no native PowerShell cmdlet for power plans, so you run powercfg commands through PowerShell to list, switch, create, and modify power schemes, and to query settings like screen timeout and sleep timers.
Background: Why PowerShell and powercfg Go Together
Windows has shipped the powercfg.exe command-line tool since the Windows XP era, and it remains the supported way to script power management on Windows 10 and Windows 11. PowerShell does not include a dedicated module for power plans (no Get-PowerPlan or Set-PowerSetting cmdlets exist in the box), so administrators and advanced users call powercfg from a PowerShell prompt. This works because PowerShell can invoke any executable and capture its output as text, and because powercfg supports stable GUID-based identifiers that scripts can rely on.
Power settings control things like when the display turns off, when the computer sleeps, what happens when you press the power button, and how aggressively the processor and disks are managed. These are grouped into power schemes (also called power plans), each identified by a GUID. The default plans on most systems are Balanced, High performance, and Power saver, though OEMs sometimes add or rename plans. Each plan contains settings (for example, display timeout) and each setting can have a different value for AC (plugged in) and DC (battery) power.
How It Works: The powercfg Commands You Need
All of the following are run in an elevated PowerShell window (right-click Start, choose Terminal (Admin) or Windows PowerShell (Admin)). The core commands are:
powercfg /list— lists available power schemes with their GUIDs and shows which is active (marked with an asterisk).powercfg /getactivescheme— prints the GUID and name of the current plan.powercfg /setactive <GUID>— switches to the plan with that GUID.powercfg /query— dumps every setting in the active scheme, including subgroup and setting GUIDs and the current AC/DC values.powercfg /change <setting> <value>— changes a common setting such as monitor timeout or standby timeout.powercfg /duplicatescheme <GUID>— copies an existing plan so you can customize it without altering the original.powercfg /delete <GUID>— removes a plan you created.powercfg /setacvalueindexandpowercfg /setdcvalueindex— set a specific setting's value for AC or battery power.powercfg /energyandpowercfg /batteryreport— generate diagnostic reports on power efficiency and battery usage.
The GUIDs matter because plan names can be localized or changed. For example, the Balanced plan's GUID is commonly 381b4222-f694-41f0-9685-ff5bb260df2e, High performance is 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c, and Power saver is a1841308-3541-4fab-bc81-f71556f20b4a. These are stable across Windows versions, which is why scripts target GUIDs rather than names.
Step-by-Step: Common Tasks in PowerShell
- Open an elevated PowerShell window.
- Run
powercfg /listto see your plans and note the GUID of the one you want. - Switch plans with
powercfg /setactive <GUID>. - To change the display timeout to 10 minutes on AC, run
powercfg /change monitor-timeout-ac 10; usemonitor-timeout-dcfor battery. - To change sleep timeout, use
powercfg /change standby-timeout-ac 30(minutes; 0 means never). - To change a less common setting, run
powercfg /query, find the subgroup and setting GUID, then usepowercfg /setacvalueindex <scheme GUID> <subgroup GUID> <setting GUID> <value>followed bypowercfg /setactive <scheme GUID>to apply it.
Note that powercfg /change accepts friendly names for a handful of settings (monitor-timeout, standby-timeout, hibernate-timeout, disk-timeout), but everything else requires GUIDs. Values for timeouts are in minutes, and 0 means "never."
Choosing the Right Plan and Settings
Balanced is the default for most desktops and laptops because it scales processor performance with demand. High performance keeps clocks higher and can increase heat and power draw, which matters on battery. Power saver lowers performance to extend battery life. For a laptop used mostly on battery, Power saver or a customized Balanced plan with shorter display timeouts is usually the better choice. For a desktop or a laptop plugged in for gaming or rendering, High performance is reasonable if cooling is adequate.
When customizing, the settings that most affect day-to-day behavior are display timeout, sleep timeout, hard disk timeout, and the "power button" and "lid close" actions. Processor power management settings (minimum/maximum processor state) are under the Processor power management subgroup and are more advanced; lowering the maximum processor state can reduce heat and fan noise at the cost of performance.
Common Problems and Fixes
- Commands fail with access denied: powercfg changes require an elevated prompt. Reopen PowerShell as administrator.
- Plan names are in another language: use GUIDs instead of names in scripts.
- Settings revert after a reboot: some OEM utilities or group policy reapply power settings. Check for manufacturer power software and Group Policy power settings.
- Sleep still happens despite timeout set to 0: 0 means never for that timeout, but other settings (like "hybrid sleep" or "hibernate after") can still trigger sleep. Check
powercfg /queryfor related settings. - Cannot delete a plan: you cannot delete the currently active plan or some built-in plans. Switch to another plan first.
PowerShell vs. the Settings App and Control Panel
The Settings app (System > Power & battery) and Control Panel's Power Options expose the same underlying plans and settings, but with a friendlier interface. PowerShell and powercfg are better for automation, remote management, and accessing settings the GUI hides. For a one-off change, the GUI is faster; for repeated or scripted changes across machines, powercfg is the practical tool. Note that some modern standby laptops hide certain sleep settings in the GUI but still expose them through powercfg.
Frequently Asked Questions
Is there a native PowerShell cmdlet for power plans? No. Windows does not ship a PowerShell module for power management, so you call powercfg.exe from PowerShell. Third-party modules exist, but they wrap the same tool.
How do I find the GUID of my current power plan? Run powercfg /getactivescheme in an elevated prompt; it prints the GUID and name of the active plan.
What does a timeout value of 0 mean? For powercfg timeouts, 0 means "never." So monitor-timeout-ac 0 keeps the display on indefinitely while plugged in.
Can I change power settings without admin rights? No. Changing power schemes and settings requires elevation, so a standard user account cannot run these commands successfully.
Why did my custom plan disappear after a Windows update? Windows updates and OEM tools can reset or remove custom plans. Recreate the plan with powercfg /duplicatescheme and reapply settings, or export it first with powercfg /export.
How do I see what is draining my battery? Run powercfg /batteryreport for a battery usage report and powercfg /energy for an energy efficiency report; both write HTML files you can open in a browser.