Open in the explorer

Do not allow location redirection

Ne pas autoriser la redirection de la localisation

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Device and Resource Redirection FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Redirection de périphérique et de ressource
Supported on
At least Windows 10 Version 2106 FR: Au moins Windows 10 version 2106
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_LOCATION_REDIRECTION

Explanation

This policy setting lets you control the redirection of location data to the remote computer in a Remote Desktop Services session.

By default, Remote Desktop Services allows redirection of location data.

If you enable this policy setting, users cannot redirect their location data to the remote computer.

If you disable or do not configure this policy setting, users can redirect their location data to the remote computer.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de contrôler la redirection des données d’emplacement vers l’ordinateur distant dans une session de services Bureau à distance.

Par défaut, les services Bureau à distance autorisent la redirection des données d’emplacement.

Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas rediriger leurs données de localisation vers l’ordinateur distant.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs peuvent rediriger leurs données de localisation vers l’ordinateur distant.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
fDisableLocationRedir
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: TerminalServer/TS_LOCATION_REDIRECTION
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fDisableLocationRedir' -Value 1 -Type DWord

Disable

# Disable: TerminalServer/TS_LOCATION_REDIRECTION
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'fDisableLocationRedir' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": TerminalServer/TS_LOCATION_REDIRECTION
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'fDisableLocationRedir' -ErrorAction SilentlyContinue

Availability

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016