Open in the explorer

Configure HTTP Proxy

Configurer le proxy HTTP

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Windows Media Player › Networking FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Lecteur Windows Media › Mise en réseau
Supported on
Windows Media Player for Windows XP and later. FR: Lecteur Windows Media pour Windows XP et version ultérieure.
ADMX file
windowsmediaplayer.admx
Internal name
windowsmediaplayer/ConfigureHTTPProxySettings

Explanation

This policy setting allows you to specify the HTTP proxy settings for Windows Media Player.

If you enable this policy setting, select one of the following proxy types:

- Autodetect: the proxy settings are automatically detected.
- Custom: unique proxy settings are used.
- Use browser proxy settings: browser's proxy settings are used.

If the Custom proxy type is selected, the rest of the options on the Setting tab must be specified because no default settings are used for the proxy. The options are ignored if Autodetect or Browser is selected.

The Configure button on the Network tab in the Player is not available for the HTTP protocol and the proxy cannot be configured. If the "Hide network tab" policy setting is also enabled, the entire Network tab is hidden.

This policy is ignored if the "Streaming media protocols" policy setting is enabled and HTTP is not selected.

If you disable this policy setting, the HTTP proxy server cannot be used and the user cannot configure the HTTP proxy.

If you do not configure this policy setting, users can configure the HTTP proxy settings.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de spécifier les paramètres de proxy HTTP pour le Lecteur Windows Media.

Si vous activez ce paramètre de stratégie, sélectionnez l’un des types de proxy suivants :

- Détection automatique : les paramètres de proxy sont détectés automatiquement.
- Personnalisé : des paramètres de proxy uniques sont utilisés.
- Utiliser les paramètres de proxy du navigateur : les paramètres de proxy du navigateur sont utilisés.

Si le type de proxy Personnalisé est sélectionné, les autres options de l’onglet Paramètre doivent être spécifiées, car aucun paramètre par défaut n’est utilisé pour le proxy. Les options sont ignorées si Détection automatique ou Utiliser les paramètres de proxy du navigateur est sélectionné.

Le bouton Configurer de l’onglet Réseau du Lecteur n’est pas disponible pour le protocole HTTP et le proxy ne peut pas être configuré. Si le paramètre de stratégie « Masquer l’onglet Réseau » est également activé, l’onglet Réseau est entièrement masqué.

Ce paramètre de stratégie est ignoré si le paramètre de stratégie « Protocoles de diffusion multimédia en continu » est activée et si le protocole HTTP n’est pas sélectionné.

Si vous désactivez ce paramètre de stratégie, le serveur proxy HTTP ne peut pas être utilisé et les utilisateurs ne peuvent pas configurer le proxy HTTP.

Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut configurer les paramètres de proxy HTTP.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP
Value name
ProxyPolicy
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: windowsmediaplayer/ConfigureHTTPProxySettings
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ProxyPolicy' -Value 1 -Type DWord
# Proxy type
# Possible options:
#   Autodetect = 3 (+ AutodetectProxy=1, UseProxy=value deleted, UseBrowserProxy=value deleted)
#   Custom = 2 (+ UseProxy=1, AutodetectProxy=value deleted, UseBrowserProxy=value deleted)
#   Use browser proxy settings = 1 (+ UseBrowserProxy=1, AutodetectProxy=value deleted, UseProxy=value deleted)
Set-ItemProperty -Path $k -Name 'ProxyType' -Value 3 -Type DWord
Set-ItemProperty -Path $k -Name 'AutodetectProxy' -Value 1 -Type DWord
Remove-ItemProperty -Path $k -Name 'UseProxy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'UseBrowserProxy' -ErrorAction SilentlyContinue
# Proxy address
Set-ItemProperty -Path $k -Name 'ProxyAddress' -Value '<value>' -Type String
# Proxy port
Set-ItemProperty -Path $k -Name 'ProxyPort' -Value 80 -Type DWord  # between 1 and 65535
# Bypass proxy for local addresses
# unchecked: 0
Set-ItemProperty -Path $k -Name 'BypassProxyLocal' -Value 1 -Type DWord
# Do not use proxy server for addresses beginning with
Set-ItemProperty -Path $k -Name 'ExludeFromProxy' -Value '<value>' -Type String

Disable

# Disable: windowsmediaplayer/ConfigureHTTPProxySettings
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ProxyPolicy' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": windowsmediaplayer/ConfigureHTTPProxySettings
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP'
Remove-ItemProperty -Path $k -Name 'ProxyPolicy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ProxyType' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AutodetectProxy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'UseProxy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'UseBrowserProxy' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ProxyAddress' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ProxyPort' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'BypassProxyLocal' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ExludeFromProxy' -ErrorAction SilentlyContinue

Options (5)

LabelControlRegistry valueREG typeConstraints / details
Proxy typeType de proxyProxytypeDrop-down listenumProxyTypeREG_DWORD
Required
LabelValue
AutodetectREG_DWORD = 3
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › AutodetectProxy : REG_DWORD = 1
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › UseProxy : Deletes the value
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › UseBrowserProxy : Deletes the value
CustomREG_DWORD = 2
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › UseProxy : REG_DWORD = 1
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › AutodetectProxy : Deletes the value
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › UseBrowserProxy : Deletes the value
Use browser proxy settingsREG_DWORD = 1
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › UseBrowserProxy : REG_DWORD = 1
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › AutodetectProxy : Deletes the value
Software\Policies\Microsoft\WindowsMediaPlayer\Protocols\HTTP › UseProxy : Deletes the value
Proxy addressAdresse du proxyProxyAddressText boxtextProxyAddressREG_SZ
Proxy portPort du proxyProxyPortNumeric boxdecimalProxyPortREG_DWORD
Min: 1 · Max: 65535 · Default (UI): 80
Bypass proxy for local addressesNe pas utiliser de serveur proxy pour les adresses localesBypassProxyLocalCheck boxbooleanBypassProxyLocalREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Do not use proxy server for addresses beginning withNe pas utiliser de serveur proxy pour les adresses commençant parDoNotUseProxyLocalText boxtextExludeFromProxyREG_SZ

Availability