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

หา Network Security Key (รหัสผ่าน Wi-Fi) ใน Windows: คู่มือทุกวิธี

Network Security Key คืออะไร?

Network Security Key คือชื่อทางเทคนิคของ รหัสผ่าน Wi-Fi (Wi-Fi Password) หรือ Passphrase ที่ใช้ยืนยันตัวตนและเข้ารหัสการเชื่อมต่อระหว่างอุปกรณ์กับ Router/Access Point ทั้งคู่หมายถึงสิ่งเดียวกัน เพียงแต่ชื่อเรียกต่างกัน

วิธีหา Network Security Key ใน Windows 10/11 (เมื่อเชื่อมต่ออยู่)

วิธีที่ 1: ผ่าน Settings (Windows 10/11) - ง่ายที่สุด

  1. กด Win + I เปิด Settings
  2. ไปที่ Network & Internet → Wi-Fi
  3. คลิก Hardware properties (Windows 10) หรือคลิกชื่อเครือข่าย → View additional properties (Windows 11)
  4. ดูที่ Security type และ Network security key (Windows 11 แสดงได้เลย)
  5. Windows 10: คลิก Manage known networks → เลือกเครือข่าย → Properties → เลื่อนลงดู Network security key

วิธีที่ 2: ผ่าน Control Panel (Windows ทุกเวอร์ชัน)

  1. กด Win + R → พิมพ์ ncpa.cpl → Enter (เปิด Network Connections)
  2. คลิกขวา Wi-Fi Adapter → Status
  3. คลิก Wireless Properties
  4. แท็บ Security
  5. ติ๊ก Show characters → จะเห็น Network security key (รหัสผ่าน Wi-Fi)

วิธีที่ 3: ผ่าน Command Prompt / PowerShell (สำหรับ Admin/Advanced)

# แสดง Profile ทั้งหมด
netsh wlan show profiles

# แสดงรหัสผ่านของ Profile เฉพาะ (แทน "YourSSID" ด้วยชื่อจริง)
netsh wlan show profile name="YourSSID" key=clear

# ดูเฉพาะ Key Content
netsh wlan show profile name="YourSSID" key=clear | findstr "Key Content"

วิธีที่ 4: ผ่าน PowerShell (Modern Way)

(netsh wlan show profiles) | Select-String "\:(.+)$" | ForEach-Object {
    $ssid = $_.Matches[0].Groups[1].Value.Trim()
    $result = netsh wlan show profile name="$ssid" key=clear
    if ($result -match "Key Content\s+:\s(.+)") {
        [PSCustomObject]@{SSID=$ssid; Password=$matches[1].Trim()}
    }
} | Format-Table -AutoSize

หา Network Security Key เมื่อ ไม่ได้เชื่อมต่อ หรือลืมรหัสผ่าน

1. ดูที่สติ๊กเกอร์ Router/Modem (วิธีเร็วที่สุด)

  • พลิก Router/Modem ดูด้านหลัง ด้านข้าง หรือด้านล่าง
  • หาข้อความ: Wi-Fi Password, WPA Key, WPA2 Key, Passphrase, Security Key, Network Key, PIN
  • มักอยู่คู่กับ SSID (Network Name) และ Admin Login

2. เข้า Web Interface ของ Router

  1. เชื่อมต่อด้วย LAN Cable หรือ Wi-Fi อื่นที่รู้รหัส
  2. เปิด Browser → ใส่ IP Router (192.168.1.1, 192.168.0.1, 10.0.0.1)
  3. ล็อกอิน (admin / password หรือดูที่สติ๊กเกอร์)
  4. ไปที่ Wireless Settings → Wireless Security
  5. ดู/แก้ไข Passphrase / Pre-shared Key

3. ใช้ WPS (Wi-Fi Protected Setup) - หาก Router รองรับ

  1. กดปุ่ม WPS บน Router (มักมีสัญลักษณ์ลูกศรวนหรือล็อก)
  2. ภายใน 2 นาที: บน Windows → ไอคอน Wi-Fi → เลือกเครือข่าย → Connect → จะไม่ต้องใส่รหัสผ่าน

4. Reset Router เป็นค่าโรงงาน (Last Resort)

  1. กดปุ่ม Reset (รูเล็กๆ) ตรง Router ประมาณ 10-15 วินาที จนไฟกระพริบ
  2. Router จะกลับเป็นค่า Default (SSID และ Password ตามสติ๊กเกอร์)
  3. คำเตือน: การตั้งค่าทั้งหมดจะหาย (Port Forwarding, DDNS, Parental Controls, เป็นต้น)

หา SSID (Network Name) ใน Windows

วิธีเร็วที่สุด

  1. คลิกไอคอน Wi-Fi ที่ Taskbar
  2. ชื่อที่แสดงบนสุด (Connected) = SSID

ผ่าน Command Prompt

netsh wlan show interfaces
# ดูที่ "SSID" และ "BSSID"

สร้างรายงาน Wi-Fi แบบละเอียด

netsh wlan show wlanreport
# สร้างไฟล์ HTML ที่ %ProgramData%\Microsoft\Windows\WlanReport\wlan-report-latest.html

หา Network Security Key บน Android (Root/Non-Root)

Non-Root (Android 10+)

  1. Settings → Network & Internet → Wi-Fi
  2. คลิกเครื่องมือ (Gear icon) ถัดจากเครือข่าย → Share (QR Code)
  3. สแกน QR Code ด้วยโทรศัพท์เครื่องอื่น หรือใช้แอป QR Scanner จะได้รหัสผ่าน

Root Required (Android ทุกเวอร์ชัน)

# ไฟล์เก็บ Wi-Fi Config (ต้อง Root)
/data/misc/wifi/WpaSupplicant.conf
# หรือ
/data/misc/wifi/wpa_supplicant.conf

เปิดด้วย Text Editor จะเห็น network block พร้อม psk="password"

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

Network Security Key และ Wi-Fi Password ต่างกันไหม?

ไม่ต่างกัน เป็นสิ่งเดียวกัน Microsoft ใช้คำว่า "Network Security Key" ใน UI ส่วนผู้คนทั่วไปเรียกว่า "Wi-Fi Password" หรือ "Passphrase"

Network Security Key ยาวเท่าไหร่?

ประเภทความยาวรูปแบบ
WEP-6410 Hex (5 ASCII)0-9, A-F
WEP-12826 Hex (13 ASCII)0-9, A-F
WPA/WPA2-Personal8-63 ASCIIอักขระพิมพ์ได้ทั้งหมด
WPA2-Enterpriseขึ้นอยู่กับ RADIUSCertificate/EAP Credentials
WPA3-SAE8-63 ASCIIเดียวกับ WPA2 แต่ปลอดภัยกว่า

ไม่เจอ Show Characters ใน Wireless Properties

  • ต้องเป็น Administrator หรือมีสิทธิ์เข้าถึง Credential Manager
  • บางครั้ง Group Policy ปิดการแสดง (ตรวจสอบ gpedit.msc → Computer Config → Admin Templates → Network → Windows Connection Manager → "Prohibit showing characters")

ลืมรหัสผ่าน Router Admin (เข้า Web Interface ไม่ได้)

ต้อง Reset Router เป็นค่าโรงงาน (กดปุ่ม Reset 10-15 วิ) แล้วล็อกอินด้วย Default Credentials ที่สติ๊กเกอร์

สรุปวิธีที่แนะนำตามลำดับความสะดวก

  1. Settings → Wi-Fi → Properties (Windows 11) / Manage known networks (Windows 10)
  2. Control Panel → ncpa.cpl → Wireless Properties → Security → Show characters
  3. netsh wlan show profile name="SSID" key=clear (Command Line)
  4. ดูสติ๊กเกอร์ Router/Modem
  5. เข้า Router Web Interface
  6. WPS Push Button
  7. Reset Router (Last Resort)