Maximum number of recent documents
Nombre maximal de documents récents
Explanation
"This policy setting allows you to set the maximum number of shortcuts the system can display in the Recent Items menu on the Start menu.
The Recent Items menu contains shortcuts to the nonprogram files the user has most recently opened.
If you enable this policy setting, the system displays the number of shortcuts specified by the policy setting.
If you disable or do not configure this policy setting, by default, the system displays shortcuts to the 10 most recently opened documents."
Ce paramètre de stratégie permet de définir le nombre maximal de raccourcis que le système peut afficher dans le menu Documents récents du menu Démarrer.
Le menu Documents récents contient des raccourcis vers les fichiers non exécutables que l’utilisateur a ouverts le plus récemment.
Si vous activez ce paramètre de stratégie, le système affiche le nombre de raccourcis spécifié par ce paramètre de stratégie.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, par défaut, le système affiche les raccourcis vers les 10 documents ouverts le plus récemment.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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: WindowsExplorer/MaxRecentDocs
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Maximum number of recent documents
Set-ItemProperty -Path $k -Name 'MaxRecentDocs' -Value 150 -Type DWordDisable
# Disable: WindowsExplorer/MaxRecentDocs
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsExplorer/MaxRecentDocs
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'MaxRecentDocs' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Maximum number of recent documentsNombre maximal de documents récentsMaxRecentDocs | Numeric boxdecimal | MaxRecentDocs | REG_DWORD | Required · Default (UI): 150 |