Listing Power Plans

by Mar 5, 2013

There is a somewhat hidden WMI namespace that holds WMI classes you can use to manage power plans.

The code below lists all power plans on your local machine, and using -ComputerName, you can easily retrieve this information remotely as well:

PS> Get-CimInstance -Name root\cimv2\power -Class Win32_PowerPlan 
PS> Get-WmiObject -Name root\cimv2\power -Class Win32_PowerPlan 

This produces a nice table view:

PS> Get-WmiObject -Name root\cimv2\power -Class Win32_PowerPlan | Select-Object -Property ElementName, Description

ElementName      Description
-----------      -----------
Balanced         Automatically balances performance with energy consumption on capable...
High performance Favors performance, but may use more energy.
Power saver      Saves energy by reducing your computers performance where possible.

Twitter This Tip! ReTweet this Tip!