Let Windows apps access text content from foreground applications: registry value LetAppsAccessForegroundText and 3 moreComputerHKLM\Software\Policies\Microsoft\Windows\AppPrivacy

Policy ID
LetAppsAccessForegroundText
Scope
Computer Configuration
Supported on
At least Windows 11 Version 25H2
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › App Privacy

Registry

LetAppsAccessForegroundText

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Default for all apps:
Options
ItemStored value
User is in control0
Force Allow1
Force Deny2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppPrivacy]

; Options (use only one)
; User is in control
"LetAppsAccessForegroundText"=dword:00000000
; Force Allow
"LetAppsAccessForegroundText"=dword:00000001
; Force Deny
"LetAppsAccessForegroundText"=dword:00000002
CMD
:: Options (use only one)

:: User is in control
reg add "HKLM\Software\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessForegroundText" /t REG_DWORD /d 0 /f
:: Force Allow
reg add "HKLM\Software\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessForegroundText" /t REG_DWORD /d 1 /f
:: Force Deny
reg add "HKLM\Software\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessForegroundText" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy' -Force | Out-Null

# Options (use only one)
# User is in control
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy' -Name 'LetAppsAccessForegroundText' -PropertyType DWord -Value 0 -Force | Out-Null
# Force Allow
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy' -Name 'LetAppsAccessForegroundText' -PropertyType DWord -Value 1 -Force | Out-Null
# Force Deny
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy' -Name 'LetAppsAccessForegroundText' -PropertyType DWord -Value 2 -Force | Out-Null

LetAppsAccessForegroundText_UserInControlOfTheseApps

REG_MULTI_SZComputer
Enabled value
Depends on the option value
Element
-
Value type
REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppPrivacy]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE)
"LetAppsAccessForegroundText_UserInControlOfTheseApps"=hex(7):<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\AppPrivacy" /v "LetAppsAccessForegroundText_UserInControlOfTheseApps" /t REG_MULTI_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\AppPrivacy' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy' -Name 'LetAppsAccessForegroundText_UserInControlOfTheseApps' -PropertyType MultiString -Value '<enter value>' -Force | Out-Null

LetAppsAccessForegroundText_ForceAllowTheseApps

REG_MULTI_SZComputer
Enabled value
Depends on the option value
Element
-
Value type
REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppPrivacy]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE)
"LetAppsAccessForegroundText_ForceAllowTheseApps"=hex(7):<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\AppPrivacy" /v "LetAppsAccessForegroundText_ForceAllowTheseApps" /t REG_MULTI_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\AppPrivacy' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy' -Name 'LetAppsAccessForegroundText_ForceAllowTheseApps' -PropertyType MultiString -Value '<enter value>' -Force | Out-Null

LetAppsAccessForegroundText_ForceDenyTheseApps

REG_MULTI_SZComputer
Enabled value
Depends on the option value
Element
-
Value type
REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppPrivacy]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE)
"LetAppsAccessForegroundText_ForceDenyTheseApps"=hex(7):<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\AppPrivacy" /v "LetAppsAccessForegroundText_ForceDenyTheseApps" /t REG_MULTI_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\AppPrivacy' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppPrivacy' -Name 'LetAppsAccessForegroundText_ForceDenyTheseApps' -PropertyType MultiString -Value '<enter value>' -Force | Out-Null