Uruchamiaj tylko określone aplikacje systemu Windows: wartość rejestru RestrictApps (RestrictRun)UżytkownikHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun
- Identyfikator zasady
- RestrictApps
- Zakres
- Konfiguracja użytkownika
- Obsługiwane w systemach
- System Windows 2000 lub nowszy
- Źródło
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
- Kategoria
- System
Rejestr
RestrictRun
REG_DWORDUżytkownik- Wartość włączona
- 1
- Wartość wyłączona
- 0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ; Opcje (użyj tylko jednej) ; Włączone "RestrictRun"=dword:00000001 ; Wyłączone "RestrictRun"=dword:00000000
CMD
:: Opcje (użyj tylko jednej) :: Włączone reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "RestrictRun" /t REG_DWORD /d 1 /f :: Wyłączone reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "RestrictRun" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null # Opcje (użyj tylko jednej) # Włączone New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'RestrictRun' -PropertyType DWord -Value 1 -Force | Out-Null # Wyłączone New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'RestrictRun' -PropertyType DWord -Value 0 -Force | Out-Null
(wartości listy)
REG_SZUżytkownik- Wartość włączona
- Zależy od wartości opcji
- Element
- Lista dozwolonych aplikacji
- Typ wartości
- REG_SZ
- Dodaj do istniejącej wartości
- true
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun] "<wpisz wartość>"="<wpisz wartość>"
CMD
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun" /v "<wpisz wartość>" /t REG_SZ /d "<wpisz wartość>" /f
PowerShell
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\RestrictRun' -Name '<wpisz wartość>' -PropertyType String -Value '<wpisz wartość>' -Force | Out-Null