Interactive logon: Message text for users attempting to log on: registry value LegalNoticeTextComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
LegalNoticeText
REG_MULTI_SZComputer- Enabled value
- Depends on the option value
- Element
- Interactive logon: Message text for users attempting to log on
- Value type
- REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] ; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE) "LegalNoticeText"=hex(7):<enter value>
CMD
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "LegalNoticeText" /t REG_MULTI_SZ /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'LegalNoticeText' -PropertyType MultiString -Value '<enter value>' -Force | Out-Null