Turn Off the hard disk (plugged in)
Arrêter le disque dur (sur secteur)
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.
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/DiskACPowerDownTimeOut_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 'ACSettingIndex' -Value 0 -Type DWord # maximum 4294967295Disable
# Disable: Power/DiskACPowerDownTimeOut_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Power/DiskACPowerDownTimeOut_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\6738E2C4-E8A5-4A42-B16A-E040E769756E'
Remove-ItemProperty -Path $k -Name 'ACSettingIndex' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Turn Off the Hard Disk (seconds):Arrêter le disque dur (secondes) :EnterDiskACPowerDownTimeOut | Numeric boxdecimal | ACSettingIndex | REG_DWORD | Required · Max: 4294967295 |