Download missing COM components
Télécharger les composants manquants
Explanation
This policy setting directs the system to search Active Directory for missing Component Object Model (COM) components that a program requires.
Many Windows programs, such as the MMC snap-ins, use the interfaces provided by the COM components. These programs cannot perform all their functions unless Windows has internally registered the required components.
If you enable this policy setting and a component registration is missing, the system searches for it in Active Directory and, if it is found, downloads it. The resulting searches might make some programs start or run slowly.
If you disable or do not configure this policy setting, the program continues without the registration. As a result, the program might not perform all its functions, or it might stop.
This setting appears in the Computer Configuration and User Configuration folders. If both settings are configured, the setting in Computer Configuration takes precedence over the setting in User Configuration.
Ce paramètre de stratégie force le système à rechercher dans Active Directory les composants COM (Component Object Model) manquants dont un programme a besoin.
De nombreux programmes Windows, tels que les composants logiciels enfichables MMC, utilisent les interfaces fournies par les composants COM. Ces programmes ne peuvent pas exécuter toutes leurs fonctions tant que Windows n’a pas inscrit en interne les composants requis.
Si vous activez ce paramètre de stratégie et qu’il manque l’inscription d’un composant, le système effectue une recherche dans Active Directory et le télécharge s’il le trouve. Les recherches résultantes peuvent ralentir le démarrage ou l’exécution de certains programmes.
Si vous désactivez ou que vous ne configurez pas ce paramètre de stratégie, le programme se poursuit sans l’enregistrement. En conséquence, le programme risque de ne pas pouvoir exécuter toutes ses fonctions ou de s’arrêter.
Ce paramètre apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. Si les deux paramètres sont appliqués, le paramètre dans Configuration ordinateur prévaut sur le paramètre dans Configuration utilisateur.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\App Management- Value name
COMClassStore
| 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: COM/AppMgmt_COM_SearchForCLSID_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\App Management'
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 'COMClassStore' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: COM/AppMgmt_COM_SearchForCLSID_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\App Management'
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 'COMClassStore' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": COM/AppMgmt_COM_SearchForCLSID_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\App Management'
Remove-ItemProperty -Path $k -Name 'COMClassStore' -ErrorAction SilentlyContinue