Network Security Key = Wi-Fi Password | ค้นหาได้ 4 วิธี
⌨️ วิธี 1: CMD (Power User - เร็วที่สุด)
# 1. ดู Profile ทั้งหมด
netsh wlan show profiles
# 2. ดูรหัสของ SSID เป้าหมาย (ต้อง Run as Administrator)
netsh wlan show profile name="Your_WiFi_Name" key=clear
👉 ดูที่ Key Content = รหัสผ่าน Wi-Fi
🖱️ วิธี 2: Settings App (Windows 10/11 - ง่ายที่สุด)
- Win + I > Network & Internet > Wi-Fi
- คลิก Manage known networks
- คลิกชื่อ Wi-Fi > กดปุ่ม View (ไอคอนตา) > แสดง Password
🖱️ วิธี 3: Control Panel (Classic - ทุก Version)
- Win + R > พิมพ์
ncpa.cpl> Enter - คลิกขวา Wi-Fi Adapter > Status
- Wireless Properties > แท็บ Security
- ติ๊ก Show characters > รหัสแสดงใน Network security key
📱 วิธี 4: PowerShell (สำหรับ Script/Export)
(netsh wlan show profiles) | Select-String "\s+(.+)$" | 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]}
}
} | Format-Table -AutoSize
🔧 ถ้าหาไม่เจอใน Windows (Profile ถูกลบ/ไม่เคยเชื่อมต่อ)
- ดูสติกเกอร์เราเตอร์: Default WPA2/WPA3 Key (ด้านล่าง/หลัง)
- Login เราเตอร์: Browser →
192.168.1.1หรือ192.168.0.1→ Wireless Settings - Reset เราเตอร์: กดปุ่ม Reset 10-15 วินาที → ใช้ Default Key บนสติกเกอร์ → ตั้งค่าใหม่
- ถาม Admin/ISP: ขอรหัสจากผู้ดูแลระบบ หรือ โทร ISP (True, AIS, 3BB, TOT, NT)
🔐 เปลี่ยน Network Security Key (Wi-Fi Password) ใหม่
- Login เราเตอร์ (192.168.1.1)
- Wireless > Wireless Security
- Security Mode: WPA2-PSK (AES) หรือ WPA3-SAE
- Passphrase: ใหม่ ≥ 12 ตัวอักษร (Passphrase แบบ 4-5 คำสุ่ม ดีกว่า)
- Save/Apply → Reconnect ทุกอุปกรณ์
⚠️ แก้ปัญหา "รหัสไม่ถูกต้อง" / "Can't connect"
- ลบ Profile เก่า: Settings > Wi-Fi > Manage known networks > Forget
- อัปเดต Wi-Fi Driver (Device Manager > Network Adapters > Update)
- ตรวจสอบ Security Type ตรงกัน (Router: WPA2-AES, Windows: WPA2-Personal)
- ปิด/เปิด Wi-Fi Adapter (Fn+F2 หรือ Device Manager)
- Restart Router + Modem
💡 Pro Tip: Backup Wi-Fi Profiles
netsh wlan export profile folder="C:\WiFiBackup" key=clear
ได้ไฟล์ XML แต่ละ SSID มีรหัสใน `