Turn off boot and resume optimizations
Désactiver les optimisations de démarrage et de reprise
Explanation
This policy setting turns off the boot and resume optimizations for the hybrid hard disks in the system.
If you enable this policy setting, the system does not use the non-volatile (NV) cache to optimize boot and resume.
If you disable this policy setting, the system uses the NV cache to achieve faster boot and resume. The system determines the data that will be stored in the NV cache to optimize boot and resume. The required data is stored in the NV cache during shutdown and hibernate, respectively. This might cause a slight increase in the time taken for shutdown and hibernate.
If you do not configure this policy setting, the default behavior is observed and the NV cache is used for boot and resume optimizations.
Note: This policy setting is applicable only if the NV cache feature is on.
Ce paramètre désactive les optimisations de démarrage et de reprise pour les disques durs hybrides du système.
Si vous activez ce paramètre de stratégie, le système n’utilise pas le cache non volatile (NV) pour optimiser le démarrage et la reprise.
Si vous désactivez ce paramètre de stratégie, le système utilise le cache non volatile (NV) pour accélérer le démarrage et la reprise. Le système détermine les données qui doivent être stockées en cache NV pour optimiser le démarrage et la reprise. Les données requises sont stockées dans le cache NV respectivement pendant l’arrêt et la veille prolongée. Ceci peut ralentir la mise à l’arrêt et le passage en veille prolongée.
Si vous ne configurez pas ce paramètre de stratégie, le cache NV est utilisé par défaut pour les optimisations de démarrage et de reprise.
Remarque : ce paramètre de stratégie n’est applicable que si la fonctionnalité de cache NV est activée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NvCache- Value name
OptimizeBootAndResume
| 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/BootResumePolicy
$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 'OptimizeBootAndResume' -Value 0 -Type DWordDisable
# Disable: DiskNVCache/BootResumePolicy
$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 'OptimizeBootAndResume' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DiskNVCache/BootResumePolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NvCache'
Remove-ItemProperty -Path $k -Name 'OptimizeBootAndResume' -ErrorAction SilentlyContinue