Open in the explorer

Do not process the run once list

Ne pas traiter la liste d’exécution unique

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System › Logon FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système › Ouverture de session
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
Logon.admx
Internal name
Logon/DisableExplorerRunOnceLegacy_1

Explanation

This policy setting ignores customized run-once lists.

You can create a customized list of additional programs and documents that are started automatically the next time the system starts (but not thereafter). These programs are added to the standard list of programs and services that the system starts.

If you enable this policy setting, the system ignores the run-once list.

If you disable or do not configure this policy setting, the system runs the programs in the run-once list.

This policy setting appears in the Computer Configuration and User Configuration folders. If both policy settings are configured, the policy setting in Computer Configuration takes precedence over the policy setting in User Configuration.

Note: Customized run-once lists are stored in the registry in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce.

Also, see the ""Do not process the legacy run list"" policy setting.

French text from Windows 11 26H2

Ce paramètre de stratégie ignore les listes d’exécution unique personnalisées.

Vous pouvez créer une liste personnalisée de programmes et de documents supplémentaires qui sont démarrés automatiquement au prochain démarrage du système (mais qui ne le sont plus ensuite). Ces programmes sont ajoutés à la liste standard des programmes et des services démarrés par le système.

Si vous activez ce paramètre de stratégie, le système ignore la liste d’exécution unique.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le système exécute les programmes qui se trouvent dans la liste d’exécution unique.

Ce paramètre de stratégie apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. Si les deux paramètres de stratégie sont configurés, le paramètre de stratégie dans Configuration ordinateur prévaut sur le paramètre dans Configuration utilisateur.

Remarque : les listes d’exécution unique personnalisées sont stockées dans le Registre dans HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce.

Consultez également le paramètre de stratégie « Ne pas traiter la liste d’exécution héritée ».

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
DisableCurrentUserRunOnce
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: Logon/DisableExplorerRunOnceLegacy_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'DisableCurrentUserRunOnce' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: Logon/DisableExplorerRunOnceLegacy_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'DisableCurrentUserRunOnce' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Logon/DisableExplorerRunOnceLegacy_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'DisableCurrentUserRunOnce' -ErrorAction SilentlyContinue

Availability