Disable caching of Auto-Proxy scripts
Désactiver la mise en cache des scripts de proxy automatiques
Explanation
Prevents automatic proxy scripts, which interact with a server to automatically configure users' proxy settings, from being stored in the users' cache.
If you enable this policy, automatic proxy scripts will not be stored temporarily on the users' computer.
If you disable this policy or do not configure it, automatic proxy scripts can be stored in the users' cache.
Empêche de sauvegarder dans le cache utilisateur les scripts de proxy automatiques, qui interagissent avec un serveur pour configurer automatiquement les paramètres de proxy de l’utilisateur.
Si vous activez ce paramètre de stratégie, les scripts de proxy automatiques ne sont pas sauvegardés temporairement dans l’ordinateur de l’utilisateur.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les scripts de proxy automatiques peuvent être sauvegardés dans le cache de l’utilisateur.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings- Value name
EnableAutoProxyResultCache
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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/AutoProxyCache
$k = 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableAutoProxyResultCache' -Value 0 -Type DWordDisable
# Disable: inetres/AutoProxyCache
$k = 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableAutoProxyResultCache' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/AutoProxyCache
$k = 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
Remove-ItemProperty -Path $k -Name 'EnableAutoProxyResultCache' -ErrorAction SilentlyContinue