Turn off low battery user notification
Désactiver la notification utilisateur de batterie faible
Explanation
This policy setting turns off the user notification when the battery capacity remaining equals the low battery notification level.
If you enable this policy setting, Windows shows a notification when the battery capacity remaining equals the low battery notification level. To configure the low battery notification level, see the "Low Battery Notification Level" policy setting.
The notification will only be shown if the "Low Battery Notification Action" policy setting is configured to "No Action".
If you disable or do not configure this policy setting, users can control this setting.
Ce paramètre de stratégie désactive la notification utilisateur lorsque la capacité de batterie restante est égale au niveau de notification de batterie faible.
Si vous activez ce paramètre de stratégie, Windows affiche une notification lorsque la capacité de batterie restante est égale au niveau de notification de batterie faible. Pour définir le niveau de notification de batterie faible, consultez le paramètre de stratégie « Action de notification de batterie faible ».
La notification ne s’affiche que si le paramètre de stratégie « Action de notification de batterie faible » a pour valeur « Aucune action ».
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs contrôlent ce paramètre.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\bcded951-187b-4d05-bccc-f7e51960c258- Value name
DCSettingIndex
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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/DCBatteryDischargeLevel1UINotification_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\bcded951-187b-4d05-bccc-f7e51960c258'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 0 -Type DWordDisable
# Disable: Power/DCBatteryDischargeLevel1UINotification_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\bcded951-187b-4d05-bccc-f7e51960c258'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Power/DCBatteryDischargeLevel1UINotification_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\bcded951-187b-4d05-bccc-f7e51960c258'
Remove-ItemProperty -Path $k -Name 'DCSettingIndex' -ErrorAction SilentlyContinue