Ouvrir dans l'explorateur

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.

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft OneNote 2016 › Options OneNote › Versions et Corbeille EN : User Configuration › Policies › Administrative Templates › Microsoft OneNote 2016 › OneNote Options › Versions and Recyle Bin
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
onent16.admx
Nom interne
onent16/L_DaysBackToKeepItemsInRecycleBin

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 365

Dé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 SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Days back to keep items in recycle binL_DaysBackToKeepItemsInRecycleBinSpinIDZone numériquedecimaldaystokeeprecycleditemsREG_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.