Disable "Configuring History": registry value History (Control Panel)UserHKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel

Policy ID
RestrictHistory
Scope
Computer Configuration, User Configuration
Supported on
At least Internet Explorer 5.0
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Internet Explorer › Delete Browsing History

Registry

History

-UserComputer

DaysToKeep

REG_DWORDComputerUser
Enabled value
Depends on the option value
Element
Days to keep pages in History
Value type
REG_DWORD
Required
true
Maximum value
999
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"DaysToKeep"=dword:<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\CurrentVersion\Internet Settings\Url History" /v "DaysToKeep" /t REG_DWORD /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\CurrentVersion\Internet Settings\Url History' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History' -Name 'DaysToKeep' -PropertyType DWord -Value '<enter value>' -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"DaysToKeep"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History" /v "DaysToKeep" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History' -Name 'DaysToKeep' -PropertyType DWord -Value '<enter value>' -Force | Out-Null