Open in the explorer

Prevent specifying the code download path for each computer

Empêcher la spécification du chemin d’accès de téléchargement du code pour chaque ordinateur

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Corporate Settings › Code Download FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Paramètres Entreprise › Téléchargement de code
Supported on
At least Internet Explorer 7.0 FR: Au moins Internet Explorer 7.0
ADMX file
inetres.admx
Internal name
inetres/CodeDownloadPol

Explanation

This policy setting prevents the user from specifying the code download path for each computer. The Internet Component Download service exposes a function that is called by an application to download, verify, and install code for an Object Linking and Embedding (OLE) component.

If you enable this policy setting, the user cannot specify the download path for the code. You must specify the download path.

If you disable or do not configure this policy setting, the user can specify the download path for the code.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche l’utilisateur de spécifier le chemin d’accès de téléchargement du code pour chaque ordinateur. Le service de téléchargement de composants Internet expose une fonction appelée par une application pour télécharger, vérifier et installer du code pour un composant de liaison et d’incorporation d’objets (OLE).

Si vous activez ce paramètre de stratégie, l’utilisateur ne peut pas spécifier le chemin d’accès de téléchargement du code. Vous devez spécifier le chemin d’accès de téléchargement.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur peut spécifier le chemin d’accès de téléchargement du code.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings
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: inetres/CodeDownloadPol
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Path
Set-ItemProperty -Path $k -Name 'CodeBaseSearchPath' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": inetres/CodeDownloadPol
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
Remove-ItemProperty -Path $k -Name 'CodeBaseSearchPath' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
PathChemin d’accèsPathText boxtextCodeBaseSearchPathREG_SZ
Default (UI): CODEBASE

Availability