Open in the explorer

Set the SafeSearch setting for Search

Définir le paramètre SafeSearch pour Search

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Search FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher
Supported on
Microsoft Windows 8.1. Not supported on Windows 10 or later FR: Microsoft Windows 8.1. Non pris en charge sur Windows 10 ou version ultérieure
ADMX file
Search.admx
Internal name
Search/SafeSearch

Explanation

This policy setting allows you to control the SafeSearch setting used when performing a query in Search.

If you enable this policy setting, you can specify one of three SafeSearch settings, which users won't be able to change:

-Strict: Filter out adult text, images, and videos from search results;

-Moderate: Filter adult images and videos but not text from search results;

-Off: Don't filter adult content from search results.

If you disable or don't configure this policy setting, users can specify the SafeSearch setting.

Windows 10 users should use Search/DoNotUseWebResults

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de contrôler le paramètre Filtre adulte utilisé lors de l’exécution d’une requête dans Rechercher.

Si vous activez ce paramètre de stratégie, vous pouvez spécifier l’une des trois valeurs du paramètre Filtre adulte, que les utilisateurs ne peuvent pas modifier :

- Strict : filtre le texte, les images et les vidéos pour adultes dans les résultats de recherche.

- Modéré : filtre les images et les vidéos pour adultes, mais pas le texte, dans les résultats de recherche.

- Désactivé : ne filtre pas les résultats de recherche.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs peuvent spécifier le paramètre Filtre adulte.

Les utilisateurs de Windows 10 users doivent utiliser Search/DoNotUseWebResults

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Value name
ConnectedSearchSafeSearch
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot 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.

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: Search/SafeSearch
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
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 'ConnectedSearchSafeSearch' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
# Default Safe Search Setting
# Possible options:
#   Strict = 1
#   Moderate = 2
#   Off = 3
Set-ItemProperty -Path $k -Name 'ConnectedSearchSafeSearch' -Value 2 -Type DWord

Disable

# Disable: Search/SafeSearch
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
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 'ConnectedSearchSafeSearch' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Search/SafeSearch
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'ConnectedSearchSafeSearch' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Default Safe Search SettingParamètre par défaut de la recherche sécuriséeSafeSearch_DropdownDrop-down listenumConnectedSearchSafeSearchREG_DWORD
Default choice (UI): #1
LabelValue
StrictREG_DWORD = 1
ModerateREG_DWORD = 2
OffREG_DWORD = 3

Availability