Prevent unwanted iFilters and protocol handlers
Empêcher les iFilters indésirables et les gestionnaires de protocole
Explanation
Enabling this policy prevents Windows Desktop Search from using iFilters and protocol handlers unless they are specified in the allow list. However, This policy will not prevent iFilters or protocol handlers from being installed, nor will it prevent them from being used by other applications or services.
You can also specify an allow list of add-ins by providing the classID or ProgId string. For example, if you plan to deploy a particular iFilter, make sure that this iFilter is on the allow list, either as a GUID such as {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} (include the braces) or a ProgID such as VisFilter.CFilter.1.
If you maintain a locked desktop environment, this setting is redundant because non-administrative users do not have permission to install new components. If your users have Administrator permissions or can install software, this policy prevents them from specifically using Windows Desktop Search-related add-ins.
Note: Because of a limitation in the Group Policy editor, you must add at least one entry in the allow list, even if you want to enable this policy without an allow list. Create a list entry by putting a space in the name field and a space in the value field and then save it. This will create a placeholder entry that is ignored by the program.
L’activation de cette stratégie empêche Windows Search d’utiliser des iFilters et des gestionnaires de protocole sauf s’ils sont spécifiés dans la liste verte. Toutefois, cette stratégie n’empêche pas l’installation des iFilters ou gestionnaires de protocole, ni leur utilisation par d’autres applications ou services.
Vous pouvez également spécifier une liste verte de compléments en indiquant la chaîne classID ou ProgId. Par exemple, si vous envisagez de déployer un iFilter particulier, assurez-vous qu’il figure dans la liste verte, sous forme d’un GUID tel que {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} (inclure les accolades) ou d’un ProgID tel que VisFilter.CFilter.1.
Si votre environnement de bureau est verrouillé, ce paramètre est redondant car les utilisateurs non administratifs ne sont pas autorisés à installer de nouveaux composants. Si vos utilisateurs disposent d’autorisations Administrateur ou peuvent installer des logiciels, cette stratégie les empêche d’utiliser spécifiquement les compléments relatifs à Windows Search.
Remarque : en raison d’une limitation au niveau de l’éditeur de stratégie de groupe, vous devez ajouter au moins une entrée dans la liste verte, même si vous voulez activer cette stratégie sans liste verte. Créez une entrée de liste en insérant un espace dans le champ du nom et un espace dans le champ de valeur, puis enregistrez-la. Cela crée une entrée d’espace réservé ignorée par le programme.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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: Search/PreventUnwantedAddins
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\PreventUnwantedAddins'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allow List
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<value1>', '<value2>') # Replace the values with your own
foreach ($v in $values) { Set-ItemProperty -Path $k -Name $v -Value $v -Type String }Disable
# Disable: Search/PreventUnwantedAddins
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Search/PreventUnwantedAddins
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\PreventUnwantedAddins'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Allow ListListe vertePreventUnwantedAddins_AllowList | List (table)list | SOFTWARE\Policies\Microsoft\Windows\Windows Search\PreventUnwantedAddinsNumbered values (1, 2, 3…) | REG_SZ (values under the key) |