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

วิธีหา Network Security Key บน Windows 10/11: ขั้นตอนละเอียดพร้อมภาพประกอบ

Network Security Key บน Windows คืออะไร?

คือ รหัสผ่าน Wi-Fi (Wi-Fi Password) ที่ Windows บันทึกไว้เมื่อเคยเชื่อมต่อ สามารถดูได้หากอยู่ในสถานะ Connected หรือเคย Connected มาก่อน

วิธีที่ 1: ผ่าน Settings (Windows 10/11) - แนะนำ

  1. กด Win + I เปิด Settings
  2. ไป Network & internet > Advanced network settings (Win11) / Status (Win10) > Network and Sharing Center
  3. คลิกชื่อ Wi-Fi (ชื่อเครือข่าย) ข้างๆ คำว่า Connections
  4. หน้าต่าง Wi-Fi Status → กด Wireless Properties
  5. แท็บ Security
  6. ติ๊ก Show characters
  7. ช่อง Network security key จะแสดงรหัสผ่าน

วิธีที่ 2: Command Prompt / PowerShell (เร็วกว่า)

  1. เปิด CMD หรือ PowerShell (Run as Administrator ไม่จำเป็น)
  2. พิมพ์: netsh wlan show profiles → ดูชื่อ Profile (SSID) ทั้งหมด
  3. พิมพ์: netsh wlan show profile name="SSID_NAME" key=clear
  4. ดูบรรทัด Key Content = รหัสผ่าน Wi-Fi

ตัวอย่าง: netsh wlan show profile name="MyHomeWiFi" key=clear

วิธีที่ 3: PowerShell One-Liner (แสดงทุก SSID และ Password)

netsh wlan show profiles | Select-String ":" | ForEach-Object { $ssid = $_.ToString().Split(":")[1].Trim(); netsh wlan show profile name="$ssid" key=clear | Select-String "Key Content" }

วิธีที่ 4: Wireless Network Properties (Classic Control Panel)

  1. Win + R → พิมพ์ ncpa.cpl → Enter
  2. ขวาที่ Wireless Adapter → Status → Wireless Properties → Security → Show characters

กรณีไม่เห็น "Show characters" หรือมืด

  • ไม่ได้ Login ด้วย Admin Rights → ใช้ User ธรรมดาได้ แต่บางครั้ง Policy บล็อก
  • Wi-Fi Profile ถูกลบ/ไม่มี (ไม่เคยเชื่อมต่อ)
  • Group Policy: "Prevent users from viewing wireless network passwords" Enabled
  • แก้: รัน CMD/PowerShell as Admin → คำสั่ง netsh ข้างต้นยังทำงานได้

กรณีลืมรหัส Wi-Fi ทั้งหมด

  1. ดูสติ๊กเกอร์ Router (Default Passphrase)
  2. เข้าหน้า Admin Router: 192.168.1.1 → Wireless Security → Passphrase
  3. Reset Router: กด Reset 10 วินาที → ตั้งค่าใหม่

คำถามที่พบบ่อย

Network Security Key = Wi-Fi Password ไหม?

ใช่ ชื่อทางเทคนิคของ Microsoft เรียกว่า Network Security Key

ดูรหัส Wi-Fi ของคนอื่นบนคอมพิวเตอร์ร่วมได้ไหม?

ได้ หาก Profile บันทึกไว้ "All users" หรือ User อื่นเคยเชื่อมต่อบนเครื่องนี้ และคุณมีสิทธิ์ Admin/เข้าถึงได้

Export/Backup Wi-Fi Profiles ทั้งหมด

# Export ทั้งหมดเป็น XML (รวม Password)
netsh wlan export profile folder=C:\WiFiBackup key=clear

# Import กลับ
netsh wlan add profile filename="C:\WiFiBackup\Wi-Fi-SSID.xml" user=all

ลบ Saved Wi-Fi Profile

  1. Settings → Network & internet → Wi-Fi → Manage known networks
  2. เลือก Wi-Fi → Forget
  3. หรือ CMD: netsh wlan delete profile name="SSID"

สรุป

Windows 10/11: Settings → Network & Internet → Network and Sharing Center → Wi-Fi → Wireless Properties → Security → Show characters หรือเร็วกว่า: CMD → netsh wlan show profile name="SSID" key=clear ดู Key Content