Approved Installation Sites for ActiveX Controls
Sites d’installation approuvés pour les contrôles ActiveX
Explanation
This policy setting determines which ActiveX installation sites standard users in your organization can use to install ActiveX controls on their computers. When this setting is enabled, the administrator can create a list of approved Activex Install sites specified by host URL.
If you enable this setting, the administrator can create a list of approved ActiveX Install sites specified by host URL.
If you disable or do not configure this policy setting, ActiveX controls prompt the user for administrative credentials before installation.
Note: Wild card characters cannot be used when specifying the host URLs.
Ce paramètre de stratégie détermine quels sites d’installation ActiveX les utilisateurs standard de votre organisation peuvent utiliser pour installer des contrôles ActiveX sur leur ordinateur. Lorsque ce paramètre est activé, l’administrateur peut créer une liste des sites d’installation ActiveX approuvés spécifiés par l’URL hôte.
Si vous activez ce paramètre, l’administrateur peut créer une liste des sites d’installation ActiveX approuvés spécifiés par l’URL hôte.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les contrôles ActiveX invitent l’utilisateur à spécifier des informations d’identification d’administration avant l’installation.
Remarque : vous ne pouvez pas utiliser de caractères génériques pour indiquer des URL hôtes.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AxInstaller- Value name
ApprovedList
| 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: ActiveXInstallService/ApprovedActiveXInstallSites
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AxInstaller'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ApprovedList' -Value 1 -Type DWord
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AxInstaller\ApprovedActiveXInstallSites'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Host URLs
$items = @{
'<name1>' = '<value1>'
'<name2>' = '<value2>'
} # Replace the values with your own
$items.GetEnumerator() | ForEach-Object { Set-ItemProperty -Path $k -Name $_.Key -Value $_.Value -Type String }Disable
# Disable: ActiveXInstallService/ApprovedActiveXInstallSites
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AxInstaller'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ApprovedList' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ActiveXInstallService/ApprovedActiveXInstallSites
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AxInstaller'
Remove-ItemProperty -Path $k -Name 'ApprovedList' -ErrorAction SilentlyContinue
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AxInstaller\ApprovedActiveXInstallSites'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Host URLsURL hôtesApprovedActiveXInstallSiteslist | List (table)list | SOFTWARE\Policies\Microsoft\Windows\AxInstaller\ApprovedActiveXInstallSitesName = value pairs · additive | REG_SZ (values under the key) |