Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

Username และ Network Credentials ใน Windows: ค้นหา จัดการ และแก้ไขปัญหา

Network Credentials คืออะไร?

Network Credentials คือ ชื่อผู้ใช้ (Username) และรหัสผ่าน (Password) ที่ใช้ยืนยันตัวตนเมื่อเข้าถึงทรัพยากรเครือข่าย เช่น แชร์ไฟล์ (File Share), แชร์เครื่องพิมพ์, Remote Desktop, หรือ NAS โดย Windows จะเก็บ Credentials ไว้ใน Credential Manager

ค้นหา Username และ Password ที่บันทึกไว้ (Windows 10/11)

  1. กด Win + S พิมพ์ "Credential Manager" → เปิด
  2. เลือกแท็บ Windows Credentials (สำหรับเครือข่ายท้องถิ่น/โดเมน)
  3. หรือ Web Credentials (สำหรับเว็บไซต์/Edge/IE)
  4. คลิกลูกศรขยาย (▼) ที่รายการที่ต้องการ → คลิก "Show" ข้าง Password → ใส่ PIN/รหัสผ่าน Windows เพื่อยืนยัน

หยุดไม่ให้ Windows ถาม Network Credentials ซ้ำ

วิธี 1: ปิด Password Protected Sharing

  1. Control Panel → Network and Sharing Center → Change advanced sharing settings
  2. ขยาย "All Networks" → เลือก "Turn off password protected sharing" → Save changes
  3. หมายเหตุ: เหมาะสำหรับเครือข่ายบ้านที่เชื่อถือได้ בלבד

วิธี 2: ใช้ Credential เดียวกันทั้งสองเครื่อง

สร้าง Local User Account ชื่อและรหัสผ่านเหมือนกันบนเครื่องทั้งสอง (หรือใช้ Microsoft Account เดียวกัน)

วิธี 3: บันทึก Credentials ล่วงหน้า

  1. Credential Manager → Windows Credentials → "Add a Windows credential"
  2. Internet or network address: \\ServerName หรือ \\IP_Address
  3. User name: Domain\User หรือ User
  4. Password: ใส่รหัสผ่าน → OK

แก้ไขปัญหา "Enter Network Credentials" ซ้ำๆ

  • ตรวจสอบว่า Network Profile ตั้งเป็น "Private" ไม่ใช่ "Public" (Settings → Network & Internet → Properties)
  • ตรวจสอบ Service: "Function Discovery Provider Host" และ "Function Discovery Resource Publication" ทำงานอยู่ (Automatic)
  • รีเซ็ต Network Stack: CMD (Admin) → netsh winsock reset → netsh int ip reset → Restart
  • ปิด Antivirus/Firewall ชั่วคราวทดสอบ
  • สร้าง User Account ใหม่บนเครื่องปลายทาง ทดสอบล็อกอิน

ค้นหา Wi-Fi Password (Network Security Key) บน Windows

  1. Settings → Network & Internet → Advanced network settings → More network adapter options
  2. คลิกขวา Wi-Fi Adapter → Status → Wireless Properties
  3. แท็บ Security → Show characters

จัดการ Windows Credentials (Command Line)

# แสดง Credentials ทั้งหมด
cmdkey /list

# เพิ่ม Credential
cmdkey /add:ServerName /user:Domain\User /pass:Password

# ลบ Credential
cmdkey /delete:ServerName

# 備份 Credentials
# ไฟล์เก็บอยู่ที่: %APPDATA%\Microsoft\Credentials\ + %LOCALAPPDATA%\Microsoft\Credentials\
# (เข้ารหัสด้วย DPAPI - ไม่สามารถคัดลอกไปเครื่องอื่นได้โดยตรง)

Username Protection ในเครือข่าย

Username ที่ไม่ซ้ำกัน (Unique) จำเป็นสำหรับ:

  • Accountability / Auditing: รู้ว่า "ใคร" ทำ "อะไร" เมื่อไหร่
  • Access Control: กำหนดสิทธิ์เฉพาะบุคคล/กลุ่ม (ACL, RBAC)
  • Non-repudiation: ไม่สามารถปฏิเสธการกระทำได้