Open in the explorer

Prevent automatic download of applications associated with device metadata

Empêcher le téléchargement automatique des applications associées aux métadonnées de l’appareil

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Device Installation FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Installation de périphériques
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
DeviceSetup.admx
Internal name
DeviceSetup/DeviceMetadata_PreventDeviceMetadataFromNetwork

Explanation

This policy setting allows you to prevent Windows from downloading applications associated with device metadata.

If you enable this policy setting, Windows does not download applications associated with device metadata for installed devices. This policy setting overrides the setting in the Device Installation Settings dialog box (Control Panel > System and Security > System > Advanced System Settings > Hardware tab).

If you disable or do not configure this policy setting, the setting in the Device Installation Settings dialog box controls whether Windows downloads applications associated with device metadata.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet d’empêcher Windows de télécharger les applications associées aux métadonnées de l’appareil.

Si vous activez ce paramètre de stratégie, Windows ne télécharge pas les applications associées aux métadonnées d’appareil pour les appareils installés. Ce paramètre de stratégie remplace le paramètre dans la boîte de dialogue Paramètres d’installation de périphériques (Panneau de configuration > Système et sécurité > Système > Paramètres système avancés > onglet Matériel).

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le paramètre de la boîte de dialogue Paramètres d’installation de périphérique contrôle si Windows télécharge les applications associées aux métadonnées de l’appareil.

Registry

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

Disable

# Disable: DeviceSetup/DeviceMetadata_PreventDeviceMetadataFromNetwork
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventDeviceMetadataFromNetwork' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": DeviceSetup/DeviceMetadata_PreventDeviceMetadataFromNetwork
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata'
Remove-ItemProperty -Path $k -Name 'PreventDeviceMetadataFromNetwork' -ErrorAction SilentlyContinue

Availability