Open in the explorer

Maximum number of recent documents

Nombre maximal de documents récents

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › File Explorer FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers
Supported on
Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista, Windows XP, and Windows 2000 FR: Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista, Windows XP et Windows 2000
ADMX file
WindowsExplorer.admx
Internal name
WindowsExplorer/MaxRecentDocs

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."

French text from Windows 11 26H2

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 DWord

Disable

# 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 SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Maximum number of recent documentsNombre maximal de documents récentsMaxRecentDocsNumeric boxdecimalMaxRecentDocsREG_DWORD
Required · Default (UI): 150

Availability