Configure browser process code integrity guard setting: registry value BrowserCodeIntegritySettingUserHKCU\Software\Policies\Microsoft\Edge

Policy ID
BrowserCodeIntegritySetting
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 104, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge

Registry

BrowserCodeIntegritySetting

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
Configure browser process code integrity guard setting
Options
ItemStored value
Do not enable code integrity guard in the browser process.0
Enable code integrity guard audit mode in the browser process.1
Enable code integrity guard enforcement in the browser process.2
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Do not enable code integrity guard in the browser process.
"BrowserCodeIntegritySetting"=dword:00000000
; Enable code integrity guard audit mode in the browser process.
"BrowserCodeIntegritySetting"=dword:00000001
; Enable code integrity guard enforcement in the browser process.
"BrowserCodeIntegritySetting"=dword:00000002
CMD
:: Options (use only one)

:: Do not enable code integrity guard in the browser process.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "BrowserCodeIntegritySetting" /t REG_DWORD /d 0 /f
:: Enable code integrity guard audit mode in the browser process.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "BrowserCodeIntegritySetting" /t REG_DWORD /d 1 /f
:: Enable code integrity guard enforcement in the browser process.
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "BrowserCodeIntegritySetting" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Do not enable code integrity guard in the browser process.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'BrowserCodeIntegritySetting' -PropertyType DWord -Value 0 -Force | Out-Null
# Enable code integrity guard audit mode in the browser process.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'BrowserCodeIntegritySetting' -PropertyType DWord -Value 1 -Force | Out-Null
# Enable code integrity guard enforcement in the browser process.
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'BrowserCodeIntegritySetting' -PropertyType DWord -Value 2 -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Do not enable code integrity guard in the browser process.
"BrowserCodeIntegritySetting"=dword:00000000
; Enable code integrity guard audit mode in the browser process.
"BrowserCodeIntegritySetting"=dword:00000001
; Enable code integrity guard enforcement in the browser process.
"BrowserCodeIntegritySetting"=dword:00000002
CMD
:: Options (use only one)

:: Do not enable code integrity guard in the browser process.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "BrowserCodeIntegritySetting" /t REG_DWORD /d 0 /f
:: Enable code integrity guard audit mode in the browser process.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "BrowserCodeIntegritySetting" /t REG_DWORD /d 1 /f
:: Enable code integrity guard enforcement in the browser process.
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "BrowserCodeIntegritySetting" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Do not enable code integrity guard in the browser process.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'BrowserCodeIntegritySetting' -PropertyType DWord -Value 0 -Force | Out-Null
# Enable code integrity guard audit mode in the browser process.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'BrowserCodeIntegritySetting' -PropertyType DWord -Value 1 -Force | Out-Null
# Enable code integrity guard enforcement in the browser process.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'BrowserCodeIntegritySetting' -PropertyType DWord -Value 2 -Force | Out-Null