Enable watermarking
Explanation
This policy setting allows you to specify whether watermarking is enabled for a remote session.
If you enable this policy setting, then the RD Session Host server will instruct the client to project the watermarking QR code in a remote session.
If client is not compatible with watermarking, then connection will be denied.
If you disable or do not configure this policy setting, then the watermarking will be disabled.
Note: You can choose the Device ID option for QR code embedded content only if the target device is Azure AD joined or Hybrid Azure AD joined.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services- Value name
fEnableWatermarking
| 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-avd/AVD_SERVER_WATERMARKING
$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 'fEnableWatermarking' -Value 1 -Type DWord
# QR code bitmap scale factor
Set-ItemProperty -Path $k -Name 'WatermarkingQrScale' -Value '4' -Type String # between 1 and 10
# QR code bitmap opacity
Set-ItemProperty -Path $k -Name 'WatermarkingOpacity' -Value '2000' -Type String # between 100 and 9999
# Width of grid box in percent relative to QR code bitmap width
Set-ItemProperty -Path $k -Name 'WatermarkingWidthFactor' -Value '320' -Type String # between 100 and 1000
# Height of grid box in percent relative to QR code bitmap height
Set-ItemProperty -Path $k -Name 'WatermarkingHeightFactor' -Value '180' -Type String # between 100 and 1000
# QR code embedded content
# Possible options:
# Connection ID = 0
# Device ID = 1
Set-ItemProperty -Path $k -Name 'WatermarkingContent' -Value 0 -Type DWordDisable
# Disable: terminalserver-avd/AVD_SERVER_WATERMARKING
$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 'fEnableWatermarking' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": terminalserver-avd/AVD_SERVER_WATERMARKING
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'fEnableWatermarking' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'WatermarkingQrScale' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'WatermarkingOpacity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'WatermarkingWidthFactor' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'WatermarkingHeightFactor' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'WatermarkingContent' -ErrorAction SilentlyContinueOptions (5)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| QR code bitmap scale factorPart_WatermarkingQrScale | Numeric boxdecimal | WatermarkingQrScale | REG_SZ | Min: 1 · Max: 10 · Default (UI): 4 | ||||||
| QR code bitmap opacityPart_WatermarkingOpacity | Numeric boxdecimal | WatermarkingOpacity | REG_SZ | Min: 100 · Max: 9999 · Default (UI): 2000 | ||||||
| Width of grid box in percent relative to QR code bitmap widthPart_WatermarkingWidthFactor | Numeric boxdecimal | WatermarkingWidthFactor | REG_SZ | Min: 100 · Max: 1000 · Default (UI): 320 | ||||||
| Height of grid box in percent relative to QR code bitmap heightPart_WatermarkingHeightFactor | Numeric boxdecimal | WatermarkingHeightFactor | REG_SZ | Min: 100 · Max: 1000 · Default (UI): 180 | ||||||
| QR code embedded contentPart_WatermarkingContent | Drop-down listenum | WatermarkingContent | REG_DWORD | Default choice (UI): #0
|
Application
Azure Virtual Desktop (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.