Urządzenia: zapobiegaj instalacji sterowników drukarek przez użytkowników: wartość rejestru AddPrinterDriversKomputerHKLM\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers

Kategoria
Ustawienia zabezpieczeń › Zasady lokalne › Opcje zabezpieczeń
Zakres
Konfiguracja komputera
Źródło
Windows 11 (wersja 26H2 · 26300.9457)

Rejestr

AddPrinterDrivers

REG_DWORDKomputer
Wartość włączona
1
Wartość wyłączona
0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers]

; Opcje (użyj tylko jednej)
; Włączone
"AddPrinterDrivers"=dword:00000001
; Wyłączone
"AddPrinterDrivers"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Włączone
reg add "HKLM\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers" /v "AddPrinterDrivers" /t REG_DWORD /d 1 /f
:: Wyłączone
reg add "HKLM\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers" /v "AddPrinterDrivers" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Włączone
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers' -Name 'AddPrinterDrivers' -PropertyType DWord -Value 1 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers' -Name 'AddPrinterDrivers' -PropertyType DWord -Value 0 -Force | Out-Null