Open in the explorer

Allow UI Automation redirection

Autoriser la redirection de l’interface utilisateur d’automatisation

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_UIA

Explanation

This policy setting determines whether User Interface (UI) Automation client applications running on the local computer can access UI elements on the server.

UI Automation gives programs access to most UI elements, which lets you use assistive technology products like Magnifier and Narrator that need to interact with the UI in order to work properly. UI information also allows automated test scripts to interact with the UI.

Remote Desktop sessions don't currently support UI Automation redirection.

If you enable or don't configure this policy setting, any UI Automation clients on your local computer can interact with remote apps. For example, you can use your local computer's Narrator and Magnifier clients to interact with UI on a web page you opened in a remote session.

If you disable this policy setting, UI Automation clients running on your local computer can't interact with remote apps.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si les applications clientes Automation de l’interface utilisateur s’exécutant sur l’ordinateur local peuvent accéder aux éléments d’interface utilisateur du serveur.

UI Automation permet aux programmes d’accéder à la plupart des éléments de l’interface utilisateur, ce qui vous permet d’utiliser des produits de technologie d’assistance tels que la loupe et le narrateur qui doivent interagir avec l’interface utilisateur pour fonctionner correctement. Les informations d’interface utilisateur permettent également aux scripts de test automatisés d’interagir avec l’interface utilisateur.

Les sessions Bureau à distance ne prennent pas en charge la redirection UI Automation pour le moment.

Si vous activez ce paramètre de stratégie ou si vous ne le configurez pas, les clients UI Automation sur votre ordinateur local peuvent interagir avec les applications distantes. Par exemple, vous pouvez utiliser les clients narrateur et loupe de votre ordinateur local pour interagir avec l’interface utilisateur sur une page Web que vous avez ouverte dans une session à distance.

Si vous désactivez ce paramètre de stratégie, les clients UI Automation qui s’exécutent sur votre ordinateur local ne peuvent pas interagir avec les applications distantes.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
EnableUiaRedirection
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_UIA
$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 'EnableUiaRedirection' -Value 1 -Type DWord

Disable

# Disable: TerminalServer/TS_UIA
$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 'EnableUiaRedirection' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability

Windows 10

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

Windows Server

✓ 2025— 2022— 2016