Open in the explorer

Include local path when user is uploading files to a server

Inclure le chemin d’accès local lorsque l’utilisateur télécharge des fichiers sur un serveur

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page › Trusted Sites Zone User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page › Trusted Sites Zone FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Sécurité › Zone Sites approuvésFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Sécurité › Zone Sites approuvés
Supported on
At least Internet Explorer 7.0 FR: Au moins Internet Explorer 7.0
ADMX file
inetres.admx
Internal name
inetres/IZ_Policy_LocalPathForUpload_5

Explanation

This policy setting controls whether or not local path information is sent when the user is uploading a file via an HTML form. If the local path information is sent, some information may be unintentionally revealed to the server. For instance, files sent from the user's desktop may contain the user name as a part of the path.

If you enable this policy setting, path information is sent when the user is uploading a file via an HTML form.

If you disable this policy setting, path information is removed when the user is uploading a file via an HTML form.

If you do not configure this policy setting, the user can choose whether path information is sent when he or she is uploading a file via an HTML form. By default, path information is sent.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si les informations relatives au chemin d’accès local sont envoyées lorsque l’utilisateur télécharge un fichier via un formulaire HTML. Si les informations du chemin d’accès local sont envoyées, certaines peuvent être involontairement révélées au serveur. Par exemple, les fichiers envoyés depuis le Bureau d’un utilisateur peuvent contenir le nom d’utilisateur dans le chemin d’accès.

Si vous activez ce paramètre de stratégie, les informations relatives au chemin d’accès local sont envoyées lorsque l’utilisateur télécharge un fichier via un formulaire HTML.

Si vous désactivez ce paramètre de stratégie, les informations relatives au chemin d’accès local sont supprimées lorsque l’utilisateur télécharge un fichier via un formulaire HTML.

Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut choisir d’envoyer ou non les informations relatives au chemin d’accès lorsqu’il télécharge un fichier via un formulaire HTML. Par défaut, les informations du chemin d’accès sont envoyées.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
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.

Computer (HKLM)

Enable

# Enable: inetres/IZ_Policy_LocalPathForUpload_5
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Include local directory path when uploading files to a server
# Possible options:
#   Enable = 0
#   Disable = 3
Set-ItemProperty -Path $k -Name '160A' -Value 0 -Type DWord

Disable

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

Revert to "Not configured"

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

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Include local directory path when uploading files to a serverInclure le chemin d’accès au répertoire local lors du téléchargement des fichiers sur un serveurIZ_Partname160ADrop-down listenum160AREG_DWORD
Required · Default choice (UI): #0
LabelValue
EnableREG_DWORD = 0
DisableREG_DWORD = 3

Availability