Number of days to keep local document versions in the local cache
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
This policy controls how long local document versions are kept in the local cache. The default setting is 30 days and applies to Word, Excel, and PowerPoint.
If you enable this policy setting, local document versions will be kept for the number of days specified, after which they’ll be deleted from the local cache. You can configure the setting with a value from 1 to 30.
If you disable or don’t configure this policy setting, local document versions will be kept for 30 days, after which they’ll be deleted from the local cache.
Registre
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\fileio- Nom de la valeur
- non défini dans l'ADMX
Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : office16/L_AgeOutPolicyLocalVersioning
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\fileio'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Number of days
Set-ItemProperty -Path $k -Name 'ageoutpolicylocalversioning' -Value 1 -Type DWord # entre 1 et 30Désactiver
# Désactiver : office16/L_AgeOutPolicyLocalVersioning
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : office16/L_AgeOutPolicyLocalVersioning
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\fileio'
Remove-ItemProperty -Path $k -Name 'ageoutpolicylocalversioning' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| Number of daysL_AgeOutPolicyLocalVersioningDecimal | Zone numériquedecimal | ageoutpolicylocalversioning | REG_DWORD | Min : 1 · Max : 30 |
Application
Microsoft 365 Apps / Office (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.