Open in the explorer

Define proxy auto-config (.pac) for connecting to the network

Définir la configuration automatique de proxy (.pac) pour la connexion au réseau

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/ProxyPacUrl

Explanation

This policy setting defines the URL of a proxy .pac file that should be used when the client attempts to connect the network for security intelligence updates and MAPS reporting. If the proxy auto-config fails or if there is no proxy auto-config specified, the client will fall back to the alternative options (in order):
1. Proxy server (if specified)
2. Proxy .pac URL (if specified)
3. None
4. Internet Explorer proxy settings
5. Autodetect

If you enable this setting, the proxy setting will be set to use the specified proxy .pac according to the order specified above.

If you disable or do not configure this setting, the proxy will skip over this fallback step according to the order specified above.

French text from Windows 11 26H2

Ce paramètre de stratégie définit l’URL d’un fichier .pac de proxy qui doit être utilisé lorsque le client tente de se connecter au réseau pour les mises à jour de la veille de sécurité et les rapports MAPS. Si la configuration automatique de proxy échoue ou si aucune configuration automatique de proxy n’est spécifiée, le client utilise les options de remplacement (dans l’ordre) :
1. Serveur proxy (si spécifié)
2. URL du fichier .pac de proxy (si spécifiée)
3. Aucune
4. Paramètres du proxy d’Internet Explorer
5. Détection automatique

Si vous activez ce paramètre, le paramètre du proxy est défini pour utiliser le fichier .pac de proxy en respectant l’ordre spécifié ci-dessus.

Si vous désactivez ce paramètre ou que vous ne le configurez pas, le proxy ignore cette étape de remplacement en respectant l’ordre spécifié ci-dessus.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender
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: WindowsDefender/ProxyPacUrl
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Define proxy auto-config (.pac) for connecting to the network
Set-ItemProperty -Path $k -Name 'ProxyPacUrl' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/ProxyPacUrl
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
Remove-ItemProperty -Path $k -Name 'ProxyPacUrl' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Define proxy auto-config (.pac) for connecting to the networkDéfinir la configuration automatique de proxy (.pac) pour la connexion au réseauProxyPacUrlText boxtextProxyPacUrlREG_SZ
Required

Availability