Open in the explorer

Turn Off the hard disk (on battery)

Arrêter le disque dur (sur batterie)

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Power Management › Hard Disk Settings FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Gestion de l’alimentation › Paramètres du disque dur
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
Power.admx
Internal name
Power/DiskDCPowerDownTimeOut_2

Explanation

This policy setting specifies the period of inactivity before Windows turns off the hard disk.

If you enable this policy setting, you must provide a value, in seconds, indicating how much idle time should elapse before Windows turns off the hard disk.

If you disable or do not configure this policy setting, users can see and change this setting.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie la période d’inactivité avant que Windows n’arrête le disque dur.

Si vous activez ce paramètre de stratégie, vous devez fournir une valeur, en secondes, indiquant la durée d’inactivité qui doit s’écouler avant que Windows n’arrête le disque dur.

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\6738E2C4-E8A5-4A42-B16A-E040E769756E
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/DiskDCPowerDownTimeOut_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\6738E2C4-E8A5-4A42-B16A-E040E769756E'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Turn Off the Hard Disk (seconds)
Set-ItemProperty -Path $k -Name 'DCSettingIndex' -Value 0 -Type DWord  # maximum 4294967295

Disable

# Disable: Power/DiskDCPowerDownTimeOut_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Power/DiskDCPowerDownTimeOut_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\6738E2C4-E8A5-4A42-B16A-E040E769756E'
Remove-ItemProperty -Path $k -Name 'DCSettingIndex' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Turn Off the Hard Disk (seconds):Arrêter le disque dur (secondes) :EnterDiskDCPowerDownTimeOutNumeric boxdecimalDCSettingIndexREG_DWORD
Required · Max: 4294967295

Availability