Allow UI Automation redirection
Autoriser la redirection de l’interface utilisateur d’automatisation
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.
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
| 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_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 DWordDisable
# 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 DWordRevert 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