アプリ インストーラーの許可されたソースを有効にする のレジストリ値 EnableAllowedSources (AppInstaller)コンピューターHKLM\Software\Policies\Microsoft\Windows\AppInstaller
- ポリシー ID
- EnableAllowedSources
- 適用対象
- コンピューターの構成
- サポートされるバージョン
- Windows Server 2016、Windows 10 バージョン 1809 以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- Windows コンポーネント › デスクトップ アプリ インストーラー
レジストリ
EnableAllowedSources
REG_DWORDコンピューター- 有効時の値
- 1
- 無効時の値
- 0
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppInstaller] ; 選択項目 (1 つだけ使用) ; 有効 "EnableAllowedSources"=dword:00000001 ; 無効 "EnableAllowedSources"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用) :: 有効 reg add "HKLM\Software\Policies\Microsoft\Windows\AppInstaller" /v "EnableAllowedSources" /t REG_DWORD /d 1 /f :: 無効 reg add "HKLM\Software\Policies\Microsoft\Windows\AppInstaller" /v "EnableAllowedSources" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller' -Force | Out-Null # 選択項目 (1 つだけ使用) # 有効 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller' -Name 'EnableAllowedSources' -PropertyType DWord -Value 1 -Force | Out-Null # 無効 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller' -Name 'EnableAllowedSources' -PropertyType DWord -Value 0 -Force | Out-Null
(リストの値)
REG_SZコンピューター- 有効時の値
- オプションの値に依存
- 要素
- 許可されたソース:
- 値の種類
- REG_SZ
- 値の名前のプレフィックス
- -
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppInstaller\AllowedSources] ; リスト項目ごとに番号を 1 つずつ増やして値を追加します "1"="<値を入力>" "2"="<値を入力>"
CMD
:: リスト項目ごとに番号を 1 つずつ増やして値を追加します reg add "HKLM\Software\Policies\Microsoft\Windows\AppInstaller\AllowedSources" /v "1" /t REG_SZ /d "<値を入力>" /f reg add "HKLM\Software\Policies\Microsoft\Windows\AppInstaller\AllowedSources" /v "2" /t REG_SZ /d "<値を入力>" /f
PowerShell
# リスト項目ごとに番号を 1 つずつ増やして値を追加します New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller\AllowedSources' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller\AllowedSources' -Name '1' -PropertyType String -Value '<値を入力>' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller\AllowedSources' -Name '2' -PropertyType String -Value '<値を入力>' -Force | Out-Null