Open in the explorer

Do not connect to any Windows Update Internet locations

Ne pas se connecter à des emplacements Internet Windows Update

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Update › Manage updates offered from Windows Server Update Service FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows Update › Gérer les mises à jour proposées de Windows Server Update Service
Supported on
At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1 FR: Au minimum Windows Server 2012 R2, Windows 8.1 ou Windows RT 8.1
ADMX file
WindowsUpdate.admx
Internal name
WindowsUpdate/DoNotConnectToWindowsUpdateInternetLocations

Explanation

Even when Windows Update is configured to receive updates from an intranet update service, it will periodically retrieve information from the public Windows Update service to enable future connections to Windows Update, and other services like Microsoft Update or the Windows Store.

Enabling this policy will disable that functionality, and may cause connection to public services such as the Windows Store to stop working.

Note: This policy applies only when this PC is configured to connect to an intranet update service using the "Specify intranet Microsoft update service location" policy.

French text from Windows 11 26H2

Même quand Windows Update est configuré pour recevoir des mises à jour à partir d’un service de mise à jour intranet, il extrait régulièrement des informations du service Windows Update public afin d’activer les connexions ultérieures à Windows Update et à d’autres services tels que Microsoft Update ou le Windows Store.

L’activation de cette stratégie désactive cette fonctionnalité et peut provoquer le non-fonctionnement de la connexion à des services publics tels que le Windows Store.

Remarque : cette stratégie s’applique uniquement quand ce PC est configuré pour se connecter à un service de mise à jour intranet à l’aide de la stratégie « Spécifier l’emplacement intranet du service de Mise à jour Microsoft ».

Use cases

Prevents machines from contacting public Windows Update endpoints and forces them to rely on WSUS only; needed in isolated or filtered networks. The intranet update service location must also be enabled.

Side effect: most Microsoft Store functionality stops working, which is a problem if you distribute apps through that channel.

Microsoft source: Step 4: Configure Group Policy settings for automatic updates

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate
Value name
DoNotConnectToWindowsUpdateInternetLocations
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: WindowsUpdate/DoNotConnectToWindowsUpdateInternetLocations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DoNotConnectToWindowsUpdateInternetLocations' -Value 1 -Type DWord

Disable

# Disable: WindowsUpdate/DoNotConnectToWindowsUpdateInternetLocations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DoNotConnectToWindowsUpdateInternetLocations' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability