Days back to keep items in recycle bin
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 setting allows you to set the number of days before which all items added to the Recycle Bin before value will be deleted when the version history is pruned. With a 2016 format notebook, OneNote will automatically store previous versions of the pages in the notebook, and it will also store a recycle bin for all of the deleted pages and sections.
If you enable this policy setting, you can set the number of days in the past to keep recycle bin items.
If you do not configure this policy setting OneNote will use the default value of 60 days in the past.
Registre
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\onenote\options\versions- 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 : onent16/L_DaysBackToKeepItemsInRecycleBin
$k = 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\versions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Days back to keep items in recycle bin
Set-ItemProperty -Path $k -Name 'daystokeeprecycleditems' -Value 60 -Type DWord # entre 0 et 365Désactiver
# Désactiver : onent16/L_DaysBackToKeepItemsInRecycleBin
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)Revenir à « Non configuré »
# Revenir à « Non configuré » : onent16/L_DaysBackToKeepItemsInRecycleBin
$k = 'HKCU:\software\policies\microsoft\office\16.0\onenote\options\versions'
Remove-ItemProperty -Path $k -Name 'daystokeeprecycleditems' -ErrorAction SilentlyContinueOptions (1)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails |
|---|---|---|---|---|
| Days back to keep items in recycle binL_DaysBackToKeepItemsInRecycleBinSpinID | Zone numériquedecimal | daystokeeprecycleditems | REG_DWORD | Min : 0 · Max : 365 · Défaut (interface) : 60 |
Application
Microsoft 365 Apps / Office (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.