เหตุผล: ป้องกันมัลแวร์จาก USB/External Drives
เหมาะสำหรับ: องค์กร, ใช้ Public Hotspot, ทิ้งเครื่องไว้ชั่วคราว
ตั้งค่าผ่าน Group Policy Editor (Pro/Enterprise)
- Win+R →
gpedit.msc - Computer Config → Admin Templates → System → Device Installation → Device Installation Restrictions
- Double-click "Prevent installation of removable devices" → Enabled → OK
- ตอนนี้ไม่มีใครติดตั้ง Removable Devices ได้ (รวม Admin)
เพิ่มข้อความแจ้งเตือนแบบกำหนดเอง
Enable: "Display a custom message when installation is prevented by a policy setting"
ยกเว้น Administrator
- Enable: "Allow administrators to override device installation restrictions"
- Admin จะติดตั้งได้ ไม่ต้องแก้ GPO ทุกครั้ง
- Policy นี้มี Priority สูงสุด
อนุญาตเฉพาะ Hardware IDs ที่ระบุ
- Enable: "Allow installation of devices that match any of these device IDs"
- Show → ใส่ Hardware IDs
- หา Hardware ID: Device Manager → Right-click Device → Properties → Details → Hardware IDs
สรุป
GPO จำกัด Removable Devices ได้ละเอียด: บล็อกทั้งหมด, แจ้งเตือน, ยกเว้น Admin, Whitelist Hardware IDs ไม่ต้องซอฟต์แวร์協力廠商