Set the default behavior for AutoRun(자동 실행의 기본 동작 설정) 레지스트리 값 NoAutorun사용자HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
- 정책 ID
- NoAutorun
- 범위
- 컴퓨터 구성, 사용자 구성
- 지원 OS
- Windows Vista 이상
- 출처
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (버전 1.0)
- 카테고리
- Windows 구성 요소 › 자동 실행 정책
레지스트리
NoAutorun
REG_DWORD사용자컴퓨터…\Software\Microsoft\Windows\CurrentVersion\Policies\ExplorerHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 현재 키
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
- 활성 값
- 선택 값에 따름
- 요소
- 기본 자동 실행 동작
| 항목 | 저장 값 |
|---|---|
| 자동 실행 명령을 실행하지 않음 | 1 |
| 자동 실행 명령을 자동으로 실행 | 2 |
.reg · CMD · PowerShell로 적용하기
사용자계정별 설정
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ; 선택 항목 (하나만 사용) ; 자동 실행 명령을 실행하지 않음 "NoAutorun"=dword:00000001 ; 자동 실행 명령을 자동으로 실행 "NoAutorun"=dword:00000002
CMD
:: 선택 항목 (하나만 사용) :: 자동 실행 명령을 실행하지 않음 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 1 /f :: 자동 실행 명령을 자동으로 실행 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 2 /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null # 선택 항목 (하나만 사용) # 자동 실행 명령을 실행하지 않음 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 1 -Force | Out-Null # 자동 실행 명령을 자동으로 실행 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 2 -Force | Out-Null
컴퓨터전역 설정
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ; 선택 항목 (하나만 사용) ; 자동 실행 명령을 실행하지 않음 "NoAutorun"=dword:00000001 ; 자동 실행 명령을 자동으로 실행 "NoAutorun"=dword:00000002
CMD
:: 선택 항목 (하나만 사용) :: 자동 실행 명령을 실행하지 않음 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 1 /f :: 자동 실행 명령을 자동으로 실행 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoAutorun" /t REG_DWORD /d 2 /f
PowerShell
# 공통: 키 만들기 New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Force | Out-Null # 선택 항목 (하나만 사용) # 자동 실행 명령을 실행하지 않음 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 1 -Force | Out-Null # 자동 실행 명령을 자동으로 실행 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer' -Name 'NoAutorun' -PropertyType DWord -Value 2 -Force | Out-Null