Specify a custom active power plan
Spécifier un mode de gestion d’alimentation actif personnalisé
Explanation
This policy setting specifies the active power plan from a specified power plan’s GUID. The GUID for a custom power plan GUID can be retrieved by using powercfg, the power configuration command line tool.
If you enable this policy setting, you must specify a power plan, specified as a GUID using the following format: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (For example, 103eea6e-9fcd-4544-a713-c282d8e50083), indicating the power plan to be active.
If you disable or do not configure this policy setting, users can see and change this setting.
Ce paramètre de stratégie spécifie le mode de gestion d’alimentation actif à partir d’un GUID de mode de gestion d’alimentation spécifié. Il est possible de récupérer le GUID d’un mode de gestion d’alimentation personnalisé à l’aide de powercfg, l’outil en ligne de commande de configuration de l’alimentation.
Si vous activez ce paramètre de stratégie, vous devez spécifier un plan de gestion de l’alimentation, spécifié en tant que GUID, en respectant le format suivant : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (par exemple, 103eea6e-9fcd-4544-a713-c282d8e50083), en indiquant le plan de gestion de l’alimentation actif.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent l’afficher et le modifier.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: Power/CustomActiveSchemeOverride_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Custom Active Power Plan (GUID)
Set-ItemProperty -Path $k -Name 'ActivePowerScheme' -Value '<value>' -Type StringDisable
# Disable: Power/CustomActiveSchemeOverride_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Power/CustomActiveSchemeOverride_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings'
Remove-ItemProperty -Path $k -Name 'ActivePowerScheme' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Custom Active Power Plan (GUID):Mode de gestion d’alimentation actif personnalisé (GUID) :CustomActiveSchemeOverrideEnter | Text boxtext | ActivePowerScheme | REG_SZ | Required · Max length: 36 |