これらのデバイス ID と一致するデバイスのインストールを禁止する のレジストリ値 DenyDeviceIDs ほか 1 件 (Restrictions)コンピューターHKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions

ポリシー ID
DeviceInstall_IDs_Deny
適用対象
コンピューターの構成
サポートされるバージョン
Windows Vista 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
システム › デバイスのインストール › デバイスのインストールの制限

レジストリ

DenyDeviceIDs

REG_DWORDコンピューター
有効時の値
1
無効時の値
0
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions]

; 選択項目 (1 つだけ使用)
; 有効
"DenyDeviceIDs"=dword:00000001
; 無効
"DenyDeviceIDs"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: 有効
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDs" /t REG_DWORD /d 1 /f
:: 無効
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDs" /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 'DenyDeviceIDs' -PropertyType DWord -Value 1 -Force | Out-Null
# 無効
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDs' -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\DenyDeviceIDs]

; リスト項目ごとに番号を 1 つずつ増やして値を追加します
"1"="<値を入力>"
"2"="<値を入力>"
CMD
:: リスト項目ごとに番号を 1 つずつ増やして値を追加します

reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "1" /t REG_SZ /d "<値を入力>" /f
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "2" /t REG_SZ /d "<値を入力>" /f
PowerShell
# リスト項目ごとに番号を 1 つずつ増やして値を追加します

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs' -Name '1' -PropertyType String -Value '<値を入力>' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs' -Name '2' -PropertyType String -Value '<値を入力>' -Force | Out-Null

DenyDeviceIDsRetroactive

REG_DWORDコンピューター
チェックあり
1
チェックなし
0
要素
既にインストール済みの一致するデバイスにも適用されます。
値の種類
REG_DWORD
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions]

; 選択項目 (1 つだけ使用)
; チェックあり
"DenyDeviceIDsRetroactive"=dword:00000001
; チェックなし
"DenyDeviceIDsRetroactive"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: チェックあり
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDsRetroactive" /t REG_DWORD /d 1 /f
:: チェックなし
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDsRetroactive" /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 'DenyDeviceIDsRetroactive' -PropertyType DWord -Value 1 -Force | Out-Null
# チェックなし
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDsRetroactive' -PropertyType DWord -Value 0 -Force | Out-Null