PowerPlans manages Windows power plan configuration, plan settings, and hibernate state.
Use this resource when you need to set the active power plan (e.g., High Performance for servers), adjust individual power plan settings, or enable/disable hibernate. Server best practices typically require the High Performance power plan to ensure consistent CPU performance.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Hibernate |
String |
Enable or disable hibernate mode. |
|
|
Hashtable[] |
Power Plans |
|||
Hashtable[] |
Power Plan Settings |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
GUID |
Key |
String |
The GUID of Power Plan. If you want to create Original Plan, should specify unique GUID. If you want to set system default Plans, you can use aliases:
|
|
Name |
Mandatory |
String |
The Name of Power Plan. |
|
Description |
String |
The Description of Power Plan. |
||
Active |
Boolean |
Specifies set or unset Power Plan as Active. |
|
|
Ensure |
String |
Specifies existence state of Power Plan. |
|
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
SettingGuid |
Key |
String |
The GUID of Power Setting. You can obtain GUIDs by executing |
|
PlanGuid |
Key |
String |
The GUID of target Power Plan. You can also use aliases:
If you specify the alias |
|
AcDc |
Key |
String |
Specify whether setting is set for |
|
Value |
Mandatory |
UInt32 |
Specifies Power Setting value |
PowerPlans:
Plans:
- GUID: SCHEME_MAX
Name: Power Saver
Description: Power Saver
- GUID: SCHEME_BALANCED
Name: Balanced
Active: True
Settings:
- PlanGuid: ALL
SettingGuid: STANDBYIDLE
AcDc: AC
Value: 0
- PlanGuid: SCHEME_MIN
SettingGuid: HIBERNATEIDLE
AcDc: AC
Value: 0