Turn off Inventory Collector
Désactiver l’Inventory Collector
Explanation
This policy setting controls the state of the Inventory Collector.
The Inventory Collector inventories applications, files, devices, and drivers on the system and sends the information to Microsoft. This information is used to help diagnose compatibility problems.
If you enable this policy setting, the Inventory Collector will be turned off and data will not be sent to Microsoft. Collection of installation data through the Program Compatibility Assistant is also disabled.
If you disable or do not configure this policy setting, the Inventory Collector will be turned on.
Note: This policy setting has no effect if the Customer Experience Improvement Program is turned off. The Inventory Collector will be off.
Ce paramètre de stratégie contrôle l’état de l’Inventory Collector.
L’Inventory Collector répertorie les applications, fichiers, périphériques et pilotes présents dans le système et envoie ces informations à Microsoft. Elles permettent ensuite de diagnostiquer les problèmes de compatibilité.
Si vous activez ce paramètre de stratégie, l’Inventory Collector est désactivé et les données ne sont pas envoyées à Microsoft. La collecte des données d’installation via l’Assistant Compatibilité des programmes est également désactivée.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, l’Inventory Collector est activé.
Remarque : ce paramètre de stratégie n’a aucun effet si le programme d’amélioration de l’expérience utilisateur est désactivé. L’Inventory Collector est désactivé.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppCompat- Value name
DisableInventory
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: AppCompat/AppCompatTurnOffProgramInventory
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'DisableInventory' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: AppCompat/AppCompatTurnOffProgramInventory
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'DisableInventory' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": AppCompat/AppCompatTurnOffProgramInventory
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
Remove-ItemProperty -Path $k -Name 'DisableInventory' -ErrorAction SilentlyContinue