[履歴の設定] を許可しない のレジストリ値 DaysToKeep (Url History)コンピューターHKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History

ポリシー ID
RestrictHistory
適用対象
コンピューターの構成、ユーザーの構成
サポートされるバージョン
Internet Explorer 5.0 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › Internet Explorer › 閲覧履歴の削除

レジストリ

History

-コンピューターユーザー

DaysToKeep

REG_DWORDコンピューターユーザー
有効時の値
オプションの値に依存
要素
ページを履歴で保持する日数
値の種類
REG_DWORD
必須
true
最大値
999
.reg · CMD · PowerShell で適用する
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00

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

; 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください
"DaysToKeep"=dword:<値を入力>
CMD
:: 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History" /v "DaysToKeep" /t REG_DWORD /d "<値を入力>" /f
PowerShell
# 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

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 '<値を入力>' -Force | Out-Null
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00

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

; 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください
"DaysToKeep"=dword:<値を入力>
CMD
:: 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Url History" /v "DaysToKeep" /t REG_DWORD /d "<値を入力>" /f
PowerShell
# 値の名前と型は ADMX に従います。下の <値を入力> はご自身で入力してください

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 '<値を入力>' -Force | Out-Null