Zabroń instalacji przez użytkownika: wartość rejestru DisableUserInstallsKomputerHKLM\Software\Policies\Microsoft\Windows\Installer

Identyfikator zasady
MSI_DisableUserInstalls
Zakres
Konfiguracja komputera
Obsługiwane w systemach
System Microsoft Windows XP lub Windows 2000 z Instalatorem Windows 2.0
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Składniki systemu Windows › Instalator Windows

Rejestr

DisableUserInstalls

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Zachowanie instalacji przez użytkownika:
Opcje
PozycjaZapisana wartość
Zezwalaj na instalacje przez użytkownika0
Ukryj instalacje przez użytkownika1
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]

; Opcje (użyj tylko jednej)
; Zezwalaj na instalacje przez użytkownika
"DisableUserInstalls"=dword:00000000
; Ukryj instalacje przez użytkownika
"DisableUserInstalls"=dword:00000001
CMD
:: Opcje (użyj tylko jednej)

:: Zezwalaj na instalacje przez użytkownika
reg add "HKLM\Software\Policies\Microsoft\Windows\Installer" /v "DisableUserInstalls" /t REG_DWORD /d 0 /f
:: Ukryj instalacje przez użytkownika
reg add "HKLM\Software\Policies\Microsoft\Windows\Installer" /v "DisableUserInstalls" /t REG_DWORD /d 1 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Installer' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Zezwalaj na instalacje przez użytkownika
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Installer' -Name 'DisableUserInstalls' -PropertyType DWord -Value 0 -Force | Out-Null
# Ukryj instalacje przez użytkownika
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Installer' -Name 'DisableUserInstalls' -PropertyType DWord -Value 1 -Force | Out-Null