Critical battery notification level
Niveau de notification de batterie critique
Explanation
This policy setting specifies the percentage of battery capacity remaining that triggers the critical battery notification action.
If you enable this policy setting, you must enter a numeric value (percentage) to set the battery level that triggers the critical notification.
To set the action that is triggered, see the "Critical Battery Notification Action" policy setting.
If you disable this policy setting or do not configure it, users control this setting.
Ce paramètre de stratégie spécifie le pourcentage de capacité de batterie restante qui déclenche l’action de notification de batterie critique.
Si vous activez ce paramètre de stratégie, vous devez entrer une valeur numérique (en pourcentage) pour définir le niveau de batterie qui déclenche la notification critique.
Pour définir l’action déclenchée, consultez le paramètre de stratégie « Action de notification de batterie critique ».
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs contrôlent ce paramètre.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\9A66D8D7-4FF7-4EF9-B5A2-5A326CA2A469- 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/DCBatteryDischargeLevel0_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\9A66D8D7-4FF7-4EF9-B5A2-5A326CA2A469'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Critical Battery Notification Level
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 0 -Type DWord # maximum 100Disable
# Disable: Power/DCBatteryDischargeLevel0_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Power/DCBatteryDischargeLevel0_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\9A66D8D7-4FF7-4EF9-B5A2-5A326CA2A469'
Remove-ItemProperty -Path $k -Name 'DCSettingIndex' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Critical Battery Notification LevelNiveau de notification de batterie critiqueEnterDCBatteryDischargeLevel0 | Numeric boxdecimal | DCSettingIndex | REG_DWORD | Required · Max: 100 |