Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows

Bật/Tắt AutoPlay (Chạy tự động) trong Windows 11/10

AutoPlay cho phép chọn ứng dụng mở tự động khi cắm thiết bị (USB, CD/DVD, thẻ nhớ...). AutoRun là cơ chế cũ hơn, tự chạy file autorun.inf trên phương tiện lưu trữ. Windows 7+ đã vô hiệu hóa AutoRun cho USB để chống malware.

Các cách tắt AutoPlay

1. Qua Control Panel

  1. Mở Control Panel\All Control Panel Items\AutoPlay.
  2. Tùy chỉnh hoặc tắt hoàn toàn cho từng loại phương tiện.

2. Qua Settings

Windows 11
  1. Settings → Bluetooth & devices → AutoPlay.
  2. Tắt công tắc Use AutoPlay for all media and devices.
Windows 10
  1. Settings → Devices → AutoPlay.
  2. Tắt công tắc tương tự.

3. Qua Group Policy (chỉ Windows Pro/Enterprise)

  1. Win+R gõ gpedit.msc.
  2. Đường dẫn: Computer Configuration → Administrative Templates → Windows Components → Autoplay Policies.
  3. Kích đúp Turn off Autoplay → chọn Enabled → trong Turn off Autoplay on chọn All drives.
  4. Khởi động lại máy.

4. Qua Registry Editor

  1. Win+R gõ regedit.
  2. Đến khóa: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. Tìm giá trị DWORD NoDriveTypeAutoRun.
  4. Sửa giá trị thành 255 (thập phân) hoặc 0xFF (hex) để tắt AutoRun trên tất cả ổ đĩa.
  5. Khởi động lại máy.

Mẹo: Có thể dùng công cụ Ultimate Windows Tweaker để tắt AutoPlay một cú nhấp chuột.