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
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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