ファイルに関連付けられたデスクトップ アプリの起動をブロックします。 のレジストリ値 BlockFileElevationユーザーHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations
- ポリシー ID
- AppxRuntimeBlockFileElevation
- 適用対象
- コンピューターの構成、ユーザーの構成
- サポートされるバージョン
- Windows Server 2012、Windows 8、Windows RT またはそれ以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- Windows コンポーネント › アプリ実行時
レジストリ
BlockFileElevation
REG_DWORDユーザーコンピューター…\Software\Microsoft\Windows\CurrentVersion\Policies\AssociationsHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations 現在のキー
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Associations
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Associations
- 有効時の値
- 1
- 無効時の値
- 0
.reg · CMD · PowerShell で適用する
ユーザーアカウントごとの設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations] ; 選択項目 (1 つだけ使用) ; 有効 "BlockFileElevation"=dword:00000001 ; 無効 "BlockFileElevation"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用) :: 有効 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "BlockFileElevation" /t REG_DWORD /d 1 /f :: 無効 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "BlockFileElevation" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Force | Out-Null # 選択項目 (1 つだけ使用) # 有効 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'BlockFileElevation' -PropertyType DWord -Value 1 -Force | Out-Null # 無効 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'BlockFileElevation' -PropertyType DWord -Value 0 -Force | Out-Null
コンピューターコンピューター全体の設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Associations] ; 選択項目 (1 つだけ使用) ; 有効 "BlockFileElevation"=dword:00000001 ; 無効 "BlockFileElevation"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用) :: 有効 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "BlockFileElevation" /t REG_DWORD /d 1 /f :: 無効 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "BlockFileElevation" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Force | Out-Null # 選択項目 (1 つだけ使用) # 有効 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'BlockFileElevation' -PropertyType DWord -Value 1 -Force | Out-Null # 無効 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'BlockFileElevation' -PropertyType DWord -Value 0 -Force | Out-Null