Low battery notification action
Action de notification de batterie faible
Explanation
This policy setting specifies the action that Windows takes when battery capacity reaches the low battery notification level.
If you enable this policy setting, select one of the following actions:
-Take no action
-Sleep
-Hibernate
-Shut down
If you disable or do not configure this policy setting, users control this setting.
Ce paramètre de stratégie spécifie l’action effectuée par Windows lorsque la capacité de la batterie atteint le niveau de notification de batterie faible.
Si vous activez ce paramètre de stratégie, sélectionnez l’une des actions suivantes :
-Ne rien faire
-Veille
-Veille prolongée
-Arrêter
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\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06- 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/DCBatteryDischargeAction1_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Low Battery Notification Action
# Possible options:
# Take no action = 0
# Sleep = 1
# Hibernate = 2
# Shut down = 3
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 0 -Type DWordDisable
# Disable: Power/DCBatteryDischargeAction1_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Power/DCBatteryDischargeAction1_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\d8742dcb-3e6a-4b3c-b3fe-374623cdcf06'
Remove-ItemProperty -Path $k -Name 'DCSettingIndex' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Low Battery Notification ActionAction de notification de batterie faibleSelectDCBatteryDischargeAction1 | Drop-down listenum | DCSettingIndex | REG_DWORD | Required
|