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