Set the SafeSearch setting for Search
Définir le paramètre SafeSearch pour Search
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
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
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | 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.
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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Default Safe Search SettingParamètre par défaut de la recherche sécuriséeSafeSearch_Dropdown | Drop-down listenum | ConnectedSearchSafeSearch | REG_DWORD | Default choice (UI): #1
|