Ouvrir dans l'explorateur

Autoriser la recherche et autoriser Cortana à utiliser l'emplacement

Allow search and Cortana to use location

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Search
Pris en charge sur
Au moins Windows Server 2016, Windows 10 EN : At least Windows Server 2016, Windows 10
Fichier ADMX
Search.admx
Nom interne
Search/AllowSearchToUseLocation

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie spécifie si la fonction de recherche et Cortana peuvent fournir des résultats avec informations d'emplacement.
Si cette option est activée, la fonction de recherche et Cortana peuvent accéder aux informations d'emplacement.

This policy setting specifies whether search and Cortana can provide location aware search and Cortana results.
If this is enabled, search and Cortana can access location information.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Nom de la valeur
AllowSearchToUseLocation
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : Search/AllowSearchToUseLocation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSearchToUseLocation' -Value 1 -Type DWord

Désactiver

# Désactiver : Search/AllowSearchToUseLocation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSearchToUseLocation' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : Search/AllowSearchToUseLocation
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'AllowSearchToUseLocation' -ErrorAction SilentlyContinue

Disponibilité