Customize warning messages: registry value UseCustomMessages and 2 moreComputerHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- Policy ID
- RA_Options
- Scope
- Computer Configuration
- Supported on
- At least Windows Vista
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › Remote Assistance
Registry
UseCustomMessages
REG_DWORDComputer- Enabled value
- 1
- Disabled value
- 0
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\policies\Microsoft\Windows NT\Terminal Services] ; Options (use only one) ; Enabled "UseCustomMessages"=dword:00000001 ; Disabled "UseCustomMessages"=dword:00000000
CMD
:: Options (use only one) :: Enabled reg add "HKLM\Software\policies\Microsoft\Windows NT\Terminal Services" /v "UseCustomMessages" /t REG_DWORD /d 1 /f :: Disabled reg add "HKLM\Software\policies\Microsoft\Windows NT\Terminal Services" /v "UseCustomMessages" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # Options (use only one) # Enabled New-ItemProperty -Path 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services' -Name 'UseCustomMessages' -PropertyType DWord -Value 1 -Force | Out-Null # Disabled New-ItemProperty -Path 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services' -Name 'UseCustomMessages' -PropertyType DWord -Value 0 -Force | Out-Null
ShareControlMessage
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Display warning message before sharing control:
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\policies\Microsoft\Windows NT\Terminal Services] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "ShareControlMessage"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\policies\Microsoft\Windows NT\Terminal Services" /v "ShareControlMessage" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services' -Name 'ShareControlMessage' -PropertyType String -Value '<enter value>' -Force | Out-Null
ViewMessage
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Display warning message before connecting:
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\policies\Microsoft\Windows NT\Terminal Services] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "ViewMessage"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\policies\Microsoft\Windows NT\Terminal Services" /v "ViewMessage" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\policies\Microsoft\Windows NT\Terminal Services' -Name 'ViewMessage' -PropertyType String -Value '<enter value>' -Force | Out-Null