Command Prompt เป็นเครื่องมือ Admin ผู้ใช้ทั่วไปไม่จำเป็น ควรปิดเพื่อความปลอดภัย
ผ่าน Group Policy (Pro/Enterprise/Ultimate เท่านั้น)
- Win+R →
gpedit.msc - User Configuration → Administrative Templates → System
- Double-click Prevent Access to the Command Prompt → Enabled → OK

มีผลทันที ไม่ต้อง Reboot
ผ่าน Registry (ทุก Edition)
- Backup Registry ก่อน
- regedit →
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\ - สร้าง Key System (ถ้ายังไม่มี)
- สร้าง DWORD (32-bit) DisableCMD = 2 (Decimal)

ค่า: 0=Enable, 1=Disable CMD + Scripts, 2=Disable CMD Only
ลองเปิด CMD จะขึ้นข้อความถูกจำกัด
