Limit the Number of Failed Login Attempts in Windows 10: ตั้งรหัสผ่าน Lock screen ไว้ แต่โจมตี Brute-force ยังแคร็กได้ Windows 10 มีการตั้งค่าจำกัดจำนวนครั้ง Login ผิด และ Account Lockout Duration
จำกัดจำนวนครั้ง Login ผิด Windows 10
สร้าง Restore Point ก่อน
วิธีที่ 1: Local Security Policy (secpol.msc) - ไม่ใช้ได้กับ Home Edition
- Win + R → secpol.msc Enter
- ไปที่: Security Settings → Account Policies → Account Lockout Policy
- เห็น 3 นโยบาย:
Account lockout duration: นาทีที่บัญชีล็อคก่อนปลดล็อคอัตโนมัติ (1-99,999, 0=ล็อคถาวรจน Admin ปลด)
Account lockout threshold: จำนวนครั้ง Login ผิดก่อนล็อค (1-999, 0=ไม่ล็อค)
Reset account lockout counter after: นาทีที่นับถอยหลังรีเซ็ตเป็น 0 (ต้องน้อยกว่าหรือเท่ากับ duration) - ดับเบิลคลิก Account lockout threshold → ตั้งค่า (เช่น 3) → OK
- ระบบจะเสนอค่าเริ่มต้น Duration และ Reset counter = 30 นาที → OK
- แก้ค่า Duration/Reset counter ได้ตามต้องการ (ต้องสอดคล้องเงื่อนไข) → รีบูท
วิธีที่ 2: Command Prompt (สำหรับ Home Edition)
- Win + X → Command Prompt (Admin)
- พิมพ์คำสั่ง:
net accounts /lockoutthreshold:Value(Value 0-999, default 0)
net accounts /lockoutwindow:Value(Value 1-99999 นาที, default 30)
net accounts /lockoutduration:Value(Value 0-99999 นาที, 0=ล็อคถาวร, default 30) - ปิด CMD → รีบูท
บทความแนะนำ:
- Enable/Disable First Sign-in Animation Windows 10
- View User Account Details Windows 10
- Automatically Log in to User Account Windows 10
- Enable/Disable User Accounts Windows 10
เสร็จสิ้น จำกัดจำนวนครั้ง Login ผิด Windows 10 ถามได้ในความคิดเห็น