Do not allow location redirection
Ne pas autoriser la redirection de la localisation
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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