Open in the explorer

Set rules for remote control of Remote Desktop Services user sessions

Définir les règles pour le contrôle à distance des sessions utilisateur des services Bureau à distance

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Connections FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Connexions
Supported on
Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista, and Windows XP FR: Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista et Windows XP
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_RemoteControl_1

Explanation

If you enable this policy setting, administrators can interact with a user's Remote Desktop Services session based on the option selected. Select the desired level of control and permission from the options list:

1. No remote control allowed: Disallows an administrator to use remote control or view a remote user session.
2. Full Control with user's permission: Allows the administrator to interact with the session, with the user's consent.
3. Full Control without user's permission: Allows the administrator to interact with the session, without the user's consent.
4. View Session with user's permission: Allows the administrator to watch the session of a remote user with the user's consent.
5. View Session without user's permission: Allows the administrator to watch the session of a remote user without the user's consent.

If you disable this policy setting, administrators can interact with a user's Remote Desktop Services session, with the user's consent.

French text from Windows 11 26H2

Si vous activez ce paramètre de stratégie, les administrateurs peuvent intervenir dans la session de services Bureau à distance d’un utilisateur selon l’option sélectionnée. Sélectionnez le niveau de contrôle et l’autorisation souhaités dans la liste des options :

1. Aucun contrôle à distance autorisé : interdit à un administrateur d’utiliser le contrôle à distance ou d’afficher la session d’un utilisateur distant.
2. Contrôle total avec l’autorisation de l’utilisateur : autorise l’administrateur à intervenir dans la session, avec l’accord de l’utilisateur.
3. Contrôle total sans l’autorisation de l’utilisateur : autorise l’administrateur à intervenir dans la session, sans l’accord de l’utilisateur.
4. Afficher la session avec l’autorisation de l’utilisateur : autorise l’administrateur à observer la session d’un utilisateur distant avec l’accord de l’utilisateur.
5. Afficher la session sans l’autorisation de l’utilisateur : autorise l’administrateur à observer la session d’un utilisateur distant sans l’accord de l’utilisateur.

Si vous désactivez ce paramètre de stratégie, les administrateurs peuvent intervenir dans la session de services Bureau à distance d’un utilisateur, avec l’accord de l’utilisateur.

Registry

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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_RemoteControl_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Options
# Possible options:
#   No remote control allowed = 0
#   Full Control with user's permission = 1
#   Full Control without user's permission = 2
#   View Session with user's permission = 3
#   View Session without user's permission = 4
Set-ItemProperty -Path $k -Name 'Shadow' -Value 0 -Type DWord

Disable

# Disable: TerminalServer/TS_RemoteControl_1
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Options:Options :TS_RemoteControl_LevelsDrop-down listenumShadowREG_DWORD
Default choice (UI): #0
LabelValue
No remote control allowedREG_DWORD = 0
Full Control with user's permissionREG_DWORD = 1
Full Control without user's permissionREG_DWORD = 2
View Session with user's permissionREG_DWORD = 3
View Session without user's permissionREG_DWORD = 4

Availability