Ustaw domyślne zachowanie autouruchamiania: wartość rejestru NoAutorunUżytkownikHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Identyfikator zasady
NoAutorun
Zakres
Konfiguracja komputera, Konfiguracja użytkownika
Obsługiwane w systemach
System Windows Vista lub nowszy
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Składniki systemu Windows › Zasady funkcji Autoodtwarzanie

Rejestr

NoAutorun

REG_DWORDUżytkownikKomputer
Wartość włączona
Zależy od wartości opcji
Element
Domyślne zachowanie autouruchamiania
Opcje
PozycjaZapisana wartość
Nie wykonuj żadnych poleceń autouruchamiania1
Automatycznie wykonuj polecenia autouruchamiania2
Zastosuj przez .reg · CMD · PowerShell
UżytkownikUstawienie dla każdego konta
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

; Opcje (użyj tylko jednej)
; Nie wykonuj żadnych poleceń autouruchamiania
"NoAutorun"=dword:00000001
; Automatycznie wykonuj polecenia autouruchamiania
"NoAutorun"=dword:00000002
CMD
:: Opcje (użyj tylko jednej)

:: Nie wykonuj żadnych poleceń autouruchamiania
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 1 /f
:: Automatycznie wykonuj polecenia autouruchamiania
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 2 /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)
# Nie wykonuj żadnych poleceń autouruchamiania
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 1 -Force | Out-Null
# Automatycznie wykonuj polecenia autouruchamiania
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 2 -Force | Out-Null
KomputerUstawienie dla całego komputera
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

; Opcje (użyj tylko jednej)
; Nie wykonuj żadnych poleceń autouruchamiania
"NoAutorun"=dword:00000001
; Automatycznie wykonuj polecenia autouruchamiania
"NoAutorun"=dword:00000002
CMD
:: Opcje (użyj tylko jednej)

:: Nie wykonuj żadnych poleceń autouruchamiania
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 1 /f
:: Automatycznie wykonuj polecenia autouruchamiania
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 2 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Nie wykonuj żadnych poleceń autouruchamiania
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 1 -Force | Out-Null
# Automatycznie wykonuj polecenia autouruchamiania
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 2 -Force | Out-Null