Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

วิธีปรับแต่งนโยบายรหัสผ่าน (Password Policy) ใน Windows 11/10

สามารถกำหนดนโยบายรหัสผ่านใน Windows 11/10 ได้ เช่น ความยาวขั้นต่ำ ต้องมีตัวพิมพ์ใหญ่/เล็ก/ตัวเลข/สัญลักษณ์ อายุการใช้งานรหัสผ่าน ฯลฯ ผ่าน 2 วิธี:

6 ตัวเลือกนโยบายรหัสผ่านที่ปรับได้

  1. Enforce Password History (จำนวนรหัสผ่านเก่าที่ห้ามซ้ำ 0-24)
  2. Maximum password age (อายุสูงสุด 1-999 วัน หรือ 0 = ไม่หมดอายุ)
  3. Minimum password age (อายุขั้นต่ำก่อนเปลี่ยนได้ 0-998 วัน)
  4. Minimum password length (ความยาวขั้นต่ำ 0-14 ตัวอักษร)
  5. Password must meet complexity requirements (ต้องมี 3 ใน 4 ประเภท: ตัวใหญ่, ตัวเล็ก, ตัวเลข, สัญลักษณ์)
  6. Store password using reversible encryption (ไม่แนะนำ ยกเว้นแอปบังคับ)

วิธี 1: ใช้ Local Security Policy (สำหรับ Pro/Enterprise)

  1. ค้นหา Local Security Policy ใน Start Menu
  2. ไปที่ Account Policies > Password Policy
  3. ดับเบิลคลิกแต่ละรายการเพื่อแก้ไขค่า > OK

วิธี 2: ใช้ Command Prompt (Admin) - ใช้ได้ทุก Edition

เปิด CMD as Administrator รันคำสั่ง:

  • net accounts /minpwlen:ความยาว (0-14)
  • net accounts /maxpwage:วัน (1-999 หรือ unlimited)
  • net accounts /minpwage:วัน (0-998)
  • net accounts /uniquepw:จำนวน (1-24)

ตรวจสอบการตั้งค่าปัจจุบันด้วยคำสั่ง net accounts