指定された Windows アプリケーションだけを実行する のレジストリ値 RestrictRun (Explorer)ユーザーHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
- ポリシー ID
- RestrictApps
- 適用対象
- ユーザーの構成
- サポートされるバージョン
- Windows 2000 以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- システム
レジストリ
RestrictRun
REG_DWORDユーザー- 有効時の値
- 1
- 無効時の値
- 0
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ; 選択項目 (1 つだけ使用) ; 有効 "RestrictRun"=dword:00000001 ; 無効 "RestrictRun"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用) :: 有効 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "RestrictRun" /t REG_DWORD /d 1 /f :: 無効 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "RestrictRun" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null # 選択項目 (1 つだけ使用) # 有効 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'RestrictRun' -PropertyType DWord -Value 1 -Force | Out-Null # 無効 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'RestrictRun' -PropertyType DWord -Value 0 -Force | Out-Null
(リストの値)
REG_SZユーザー- 有効時の値
- オプションの値に依存
- 要素
- 許可するアプリケーションの一覧
- 値の種類
- REG_SZ
- 既存の値に追加
- true
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun] "<値を入力>"="<値を入力>"
CMD
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun" /v "<値を入力>" /t REG_SZ /d "<値を入力>" /f
PowerShell
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun' -Name '<値を入力>' -PropertyType String -Value '<値を入力>' -Force | Out-Null