Automatisch afspelen uitschakelen: registerwaarde NoDriveTypeAutoRunComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Beleids-ID
Autorun
Bereik
Computerconfiguratie, Gebruikersconfiguratie
Ondersteund op
Minimaal Windows 2000
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Windows-onderdelen › Beleid voor automatisch afspelen

Register

NoDriveTypeAutoRun

REG_DWORDComputerGebruiker
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Automatisch afspelen uitschakelen op:
Opties
ItemOpgeslagen waarde
Cd-rom-stations en stations voor verwijderbare media181
Alle stations255
Toepassen met .reg · CMD · PowerShell
ComputerInstelling voor de hele computer
.reg
Windows Registry Editor Version 5.00

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

; Opties (gebruik er maar één)
; Cd-rom-stations en stations voor verwijderbare media
"NoDriveTypeAutoRun"=dword:000000b5
; Alle stations
"NoDriveTypeAutoRun"=dword:000000ff
CMD
:: Opties (gebruik er maar één)

:: Cd-rom-stations en stations voor verwijderbare media
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /t REG_DWORD /d 181 /f
:: Alle stations
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /t REG_DWORD /d 255 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null

# Opties (gebruik er maar één)
# Cd-rom-stations en stations voor verwijderbare media
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDriveTypeAutoRun' -PropertyType DWord -Value 181 -Force | Out-Null
# Alle stations
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDriveTypeAutoRun' -PropertyType DWord -Value 255 -Force | Out-Null
GebruikerInstelling per account
.reg
Windows Registry Editor Version 5.00

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

; Opties (gebruik er maar één)
; Cd-rom-stations en stations voor verwijderbare media
"NoDriveTypeAutoRun"=dword:000000b5
; Alle stations
"NoDriveTypeAutoRun"=dword:000000ff
CMD
:: Opties (gebruik er maar één)

:: Cd-rom-stations en stations voor verwijderbare media
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /t REG_DWORD /d 181 /f
:: Alle stations
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /t REG_DWORD /d 255 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null

# Opties (gebruik er maar één)
# Cd-rom-stations en stations voor verwijderbare media
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDriveTypeAutoRun' -PropertyType DWord -Value 181 -Force | Out-Null
# Alle stations
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoDriveTypeAutoRun' -PropertyType DWord -Value 255 -Force | Out-Null