Open in the explorer

Run only specified Windows applications

Exécuter uniquement les applications Windows spécifiées

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
Shell-CommandPrompt-RegEditTools.admx
Internal name
Shell-CommandPrompt-RegEditTools/RestrictApps

Explanation

Limits the Windows programs that users have permission to run on the computer.

If you enable this policy setting, users can only run programs that you add to the list of allowed applications.

If you disable this policy setting or do not configure it, users can run all applications.

This policy setting only prevents users from running programs that are started by the File Explorer process. It does not prevent users from running programs such as Task Manager, which are started by the system process or by other processes. Also, if users have access to the command prompt (Cmd.exe), this policy setting does not prevent them from starting programs in the command window even though they would be prevented from doing so using File Explorer.

Note: Non-Microsoft applications with Windows 2000 or later certification are required to comply with this policy setting.
Note: To create a list of allowed applications, click Show. In the Show Contents dialog box, in the Value column, type the application executable name (e.g., Winword.exe, Poledit.exe, Powerpnt.exe).

French text from Windows 11 26H2

Limite les programmes Windows que les utilisateurs ont le droit d’exécuter sur l’ordinateur.

Si vous activez ce paramètre de stratégie, les utilisateurs peuvent uniquement exécuter les programmes que vous ajoutez à la liste des applications autorisées.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent exécuter toutes les applications.

Ce paramètre de stratégie empêche uniquement les utilisateurs d’exécuter des programmes qui sont démarrés par le processus de l’Explorateur de fichiers. L’exécution de programmes lancés par le processus système ou par d’autres processus, tels que le Gestionnaire des tâches, demeure autorisée pour les utilisateurs. De plus, si les utilisateurs ont accès à l’invite de commandes (Cmd.exe), ce paramètre de stratégie ne les empêche pas de démarrer des programmes dans la fenêtre de commandes alors que cela ne serait pas possible dans l’Explorateur de fichiers.

Remarque : les applications tierces disposant d’une certification Windows 2000 ou version ultérieure doivent impérativement se conformer à ce paramètre de stratégie.
Remarque : pour créer une liste des applications autorisées, cliquez sur Afficher. Indiquez le nom du fichier exécutable de l’application (par exemple, Winword.exe, Poledit.exe, Powerpnt.exe) dans la colonne Valeur de la boîte de dialogue Afficher le contenu.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
RestrictRun
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: Shell-CommandPrompt-RegEditTools/RestrictApps
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RestrictRun' -Value 1 -Type DWord
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# List of allowed applications
$values = @('<value1>', '<value2>')  # Replace the values with your own
foreach ($v in $values) { Set-ItemProperty -Path $k -Name $v -Value $v -Type String }

Disable

# Disable: Shell-CommandPrompt-RegEditTools/RestrictApps
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RestrictRun' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Shell-CommandPrompt-RegEditTools/RestrictApps
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'RestrictRun' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
List of allowed applicationsListe des applications autoriséesRestrictApps_RestrictAppsListList (table)listSoftware\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRunNumbered values (1, 2, 3…) · additiveREG_SZ (values under the key)

Availability