Open in the explorer

Run these programs at user logon

Exécuter ces programmes à l’ouverture de session utilisateur

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/Run_1

Explanation

This policy setting specifies additional programs or documents that Windows starts automatically when a user logs on to the system.

If you enable this policy setting, you can specify which programs can run at the time the user logs on to this computer that has this policy applied.

To specify values for this policy setting, click Show. In the Show Contents dialog box in the Value column, type the name of the executable program (.exe) file or document file. To specify another name, press ENTER, and type the name. Unless the file is located in the %Systemroot% directory, you must specify the fully qualified path to the file.

If you disable or do not configure this policy setting, the user will have to start the appropriate programs after logon.

Note: This setting appears in the Computer Configuration and User Configuration folders. If both settings are configured, the system starts the programs specified in the Computer Configuration setting just before it starts the programs specified in the User Configuration setting.

Also, see the ""Do not process the legacy run list"" and the ""Do not process the run once list"" settings.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie les programmes ou les documents supplémentaires démarrés automatiquement par Windows lorsqu’un utilisateur ouvre une session sur le système.

Si vous activez ce paramètre de stratégie, vous pouvez spécifier les programmes autorisés à s’exécuter au moment où l’utilisateur se connecte à l’ordinateur où ce paramètre de stratégie est appliqué.

Pour spécifier des valeurs pour ce paramètre de stratégie, cliquez sur Afficher. Dans la boîte de dialogue Afficher le contenu, dans la colonne Valeur, tapez le nom du programme exécutable (.exe) ou du document. Pour spécifier un autre nom, appuyez sur Entrée, puis tapez le nom. Si le fichier ne se trouve pas dans le répertoire %Systemroot%, vous devez spécifier le chemin d’accès complet du fichier.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur doit démarrer les programmes appropriés après l’ouverture de session.

Remarque : ce paramètre apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. Si les deux paramètres sont configurés, le système démarre les programmes spécifiés dans le paramètre Configuration ordinateur avant de démarrer ceux spécifiés dans le paramètre Configuration utilisateur.

Consultez également les paramètres « Ne pas traiter la liste d’exécution héritée » et « Ne pas traiter la liste d’exécution unique ».

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: Logon/Run_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Items to run at logon
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<value1>', '<value2>')  # Replace the values with your own
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }

Disable

# Disable: Logon/Run_1
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Logon/Run_1
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Items to run at logonÉléments à exécuter à l’ouverture de sessionRunListBox1List (table)listSoftware\Microsoft\Windows\CurrentVersion\Policies\Explorer\RunValues named “” + numberREG_SZ (values under the key)

Availability