Open in the explorer

Customize warning messages

Personnaliser les messages d’avertissement

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Remote Assistance FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Assistance à distance
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
RemoteAssistance.admx
Internal name
RemoteAssistance/RA_Options

Explanation

This policy setting lets you customize warning messages.

The "Display warning message before sharing control" policy setting allows you to specify a custom message to display before a user shares control of his or her computer.

The "Display warning message before connecting" policy setting allows you to specify a custom message to display before a user allows a connection to his or her computer.

If you enable this policy setting, the warning message you specify overrides the default message that is seen by the novice.

If you disable this policy setting, the user sees the default warning message.

If you do not configure this policy setting, the user sees the default warning message.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de personnaliser les messages d’avertissement.

Le paramètre de stratégie « Afficher un message d’avertissement avant le partage du contrôle » vous permet de spécifier l’affichage d’un message personnalisé avant qu’un utilisateur ne partage le contrôle de son ordinateur.

Le paramètre de stratégie « Afficher un message d’avertissement avant la connexion » vous permet de spécifier l’affichage d’un message personnalisé avant qu’un utilisateur n’autorise une connexion à son ordinateur.

Si vous activez ce paramètre de stratégie, le message d’avertissement spécifié remplace le message par défaut visible par le novice.

Si vous désactivez ce paramètre de stratégie, l’utilisateur voit s’afficher le message d’avertissement par défaut.

Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur voit s’afficher le message d’avertissement par défaut.

Registry

HKEY_LOCAL_MACHINE\Software\policies\Microsoft\Windows NT\Terminal Services
Value name
UseCustomMessages
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: RemoteAssistance/RA_Options
$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 'UseCustomMessages' -Value 1 -Type DWord
# Display warning message before sharing control
Set-ItemProperty -Path $k -Name 'ShareControlMessage' -Value '<value>' -Type String
# Display warning message before connecting
Set-ItemProperty -Path $k -Name 'ViewMessage' -Value '<value>' -Type String

Disable

# Disable: RemoteAssistance/RA_Options
$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 'UseCustomMessages' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": RemoteAssistance/RA_Options
$k = 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'UseCustomMessages' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ShareControlMessage' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ViewMessage' -ErrorAction SilentlyContinue

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Display warning message before sharing control:Afficher un message d’avertissement avant le partage du contrôle :RA_Options_Share_Control_MessageText boxtextShareControlMessageREG_SZ
Display warning message before connecting:Afficher un message d’avertissement avant la connexion :RA_Options_Connect_MessageText boxtextViewMessageREG_SZ

Availability