Network Security Key ใน Windows 10 คืออะไร?
Network Security Key = Wi-Fi Password (WPA2/WPA3 Passphrase) ที่ Windows 10 เก็บไว้สำหรับ Wi-Fi Profiles ที่เคยเชื่อมต่อ
🔍 วิธีหา Network Security Key ใน Windows 10 (3 วิธี)
วิธีที่ 1: GUI (Settings) — ใช้ง่ายที่สุด
- Start → Settings (⚙) → Network & Internet
- เลือก Wi-Fi ด้านซ้าย → Hardware properties (หรือ Manage known networks → คลิก SSID → Properties)
- ดู Security type (ควรเป็น WPA2-Personal/Enterprise หรือ WPA3)
- ไม่แสดง Password ในหน้านี้ — ต้องไป Control Panel แบบเก่า
วิธีที่ 2: Control Panel (Classic) — ดู Password ได้จริง
- Start → พิมพ์ Control Panel → Enter
- Network and Sharing Center (View by: Large icons)
- คลิก Wi-Fi (SSID Name) ตรง "Connections:"
- กด Wireless Properties
- แท็บ Security
- ☑ Show characters → จะเห็น Network security key
วิธีที่ 3: Command Line (CMD / PowerShell) — เร็วที่สุด สคริปต์ได้
CMD (Admin)
netsh wlan show profiles
netsh wlan show profile name="YourSSID" key=clear
# ดูบรรทัด: Key Content = YourPassword
PowerShell (Admin)
# แสดงทุก Profile + Password
$profiles = netsh wlan show profiles | Select-String "All User Profile" | ForEach-Object { $_.Line.Split(":")[1].Trim() }
foreach ($ssid in $profiles) {
$result = netsh wlan show profile name="$ssid" key=clear
$password = ($result | Select-String "Key Content").Line.Split(":")[1].Trim()
if ($password) { Write-Host "$ssid : $password" -ForegroundColor Green }
else { Write-Host "$ssid : (No password / Open)" -ForegroundColor Yellow }
}
📱 หา Wi-Fi Password บนอุปกรณ์อื่น (เพื่อกรอกใน Windows)
- macOS: Keychain Access → Search SSID → Show Password
- Android 12+: Settings → Internet → Gear → Share → Verify → See Password
- iPhone/iPad iOS 16+: Settings → Wi-Fi → ⓘ → Password → FaceID
- Router Sticker / Web UI / ISP App: ดูวิธีในบทความก่อนหน้า
🔧 วิธีจัดการ Wi-Fi Profiles ใน Windows 10
- Forget Network: Settings → Network & Internet → Wi-Fi → Manage Known Networks → Click SSID → Forget
- Priority/Order: ไม่มี GUI ต้องใช้ `netsh wlan set profileorder name="SSID" interface="Wi-Fi" priority=1`
- Export/Import Profile (XML):
# Export (include password) netsh wlan export profile name="SSID" folder="C:\Backup" key=clear # Import netsh wlan add profile filename="C:\Backup\Wi-Fi-SSID.xml" user=all
⚠️ Security Notes
- Wi-Fi Profiles เก็บใน
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}\— ต้องเป็น Admin จึงอ่านได้ - `key=clear` แสดง Password แบบ Plaintext — ใช้ใน Terminal ที่ปลอดภัยเท่านั้น
- Enterprise Wi-Fi (802.1X/EAP) — ไม่มี PSK ให้ดู (ใช้ Certificate/Username+Password)
❓ FAQ
Windows 11 ทำเหมือนกันไหม?
ใช่ — Settings UI แตกต่างเล็กน้อย (Settings → Network & Internet → Wi-Fi → Hardware Properties / Manage Known Networks) แต่ Control Panel และ `netsh` เหมือนกันทุกอย่าง
ดู Password ของ Wi-Fi ที่ไม่ได้เชื่อมต่ออยู่ (Saved) ได้ไหม?
ได้ — `netsh wlan show profile name="SSID" key=clear` ทำงานกับทุก Saved Profile
ลบ Wi-Fi Profile แล้วหายไปจริงไหม?
ได้ — `netsh wlan delete profile name="SSID"` หรือ Forget ใน Settings