Turn off non-volatile cache feature
Désactiver la fonctionnalité de cache non volatile
Explanation
This policy setting turns off all support for the non-volatile (NV) cache on all hybrid hard disks in the system. To check if you have hybrid hard disks in the system, from Device Manager, right-click the disk drive and select Properties. The NV cache can be used to optimize boot and resume by reading data from the cache while the disks are spinning up. The NV cache can also be used to reduce the power consumption of the system by keeping the disks spun down while satisfying reads and writes from the cache.
If you enable this policy setting, the system will not manage the NV cache and will not enable NV cache power saving mode.
If you disable this policy setting, the system will manage the NV cache on the disks if the other policy settings for the NV cache are appropriately configured.
Note: This policy setting will take effect on next boot.
If you do not configure this policy setting, the default behavior is to turn on support for the NV cache.
Ce paramètre de stratégie désactive toute prise en charge du cache NV (non volatile) sur tous les disques durs hybrides du système. Pour vérifier la présence de disques durs hybrides dans le système, dans le Gestionnaire de périphériques, cliquez avec le bouton droit sur le disque dur, puis sélectionnez Propriétés. Le cache NV permet d’optimiser le démarrage et la reprise en lisant des données dans le cache pendant la mise en rotation des disques. Le cache NV permet également de réduire la consommation de courant du système en maintenant les disques à l’arrêt tout en effectuant des lectures et des écritures à partir du cache.
Si vous activez ce paramètre de stratégie, le système ne gère pas le cache NV et n’active pas le mode d’économie d’énergie du cache NV.
Si vous désactivez ce paramètre de stratégie, le système gère le cache NV sur les disques si les autres paramètres de stratégie du cache NV sont correctement configurés.
Remarque : ce paramètre de stratégie ne s’applique qu’au redémarrage.
Si vous ne configurez pas ce paramètre de stratégie, le cache NV est pris en charge par défaut.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NvCache- Value name
EnableNvCache
| 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: DiskNVCache/FeatureOffPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NvCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableNvCache' -Value 0 -Type DWordDisable
# Disable: DiskNVCache/FeatureOffPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NvCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableNvCache' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DiskNVCache/FeatureOffPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NvCache'
Remove-ItemProperty -Path $k -Name 'EnableNvCache' -ErrorAction SilentlyContinue