Network Security Key บนคอมพิวเตอร์คืออะไร?
Network Security Key คือรหัสผ่าน Wi-Fi ที่คอมพิวเตอร์ใช้เชื่อมต่อกับ Router/Access Point บนระบบปฏิบัติการต่างๆ จะมีวิธีดูที่ต่างกัน
Windows 10 / 11
วิธีที่ 1: ผ่าน Settings (ง่ายที่สุด)
- Win + I > Network & Internet > Wi-Fi
- คลิก Hardware properties หรือ Manage known networks
- เลือกเครือข่าย > View (หรือ Properties)
- ดูที่ Network security key / Password
วิธีที่ 2: ผ่าน Control Panel (คลาสสิก)
- Control Panel > Network and Sharing Center
- คลิกชื่อเครือข่าย Wi-Fi (ข้าง Connections)
- Wireless Properties > แท็บ Security
- ติ๊ก Show characters
วิธีที่ 3: Command Prompt (CMD) / PowerShell
# CMD (Run as Administrator)
netsh wlan show profiles
netsh wlan show profile name="WIFI_NAME" key=clear
# PowerShell
netsh wlan show profiles
netsh wlan show profile name="WIFI_NAME" key=clear
ดูที่ Key Content = รหัสผ่าน
Windows 7
- Control Panel > Network and Sharing Center
- Manage wireless networks (ด้านซ้าย)
- คลิกขวาเครือข่าย > Properties > แท็บ Security
- ติ๊ก Show characters
macOS
วิธีที่ 1: Keychain Access (GUI)
- เปิด Keychain Access (Cmd + Space พิมพ์ Keychain)
- ด้านซ้าย: System หรือ iCloud > Category: Passwords
- ค้นหาชื่อ Wi-Fi (SSID)
- ดับเบิลคลิก > ติ๊ก Show password
- ใส่รหัสผ่าน Mac (Admin) > จะเห็นรหัสผ่าน Wi-Fi
วิธีที่ 2: Terminal
security find-generic-password -ga "WIFI_NAME" -w
# หรือ
security find-generic-password -wa "WIFI_NAME"
Linux (Ubuntu, Fedora, Debian, Arch)
NetworkManager (GUI/CLI)
# ดูไฟล์การตั้งค่าที่เก็บไว้ (ต้อง sudo)
sudo cat /etc/NetworkManager/system-connections/WIFI_NAME.nmconnection
# หรือใช้ nmcli
nmcli -s -g 802-11-wireless-security.psk connection show "WIFI_NAME"
หาในส่วน [802-11-wireless-security] > psk= รหัสผ่าน
wpa_supplicant (หากไม่ใช้ NetworkManager)
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
# ดู psk="password"
ลืมรหัสผ่าน Wi-Fi ทำไงดี?
- ดูสติ๊กเกอร์ Router: ใช้ Default Password
- เข้า Router Web UI: 192.168.1.1 ดู/เปลี่ยนใน Wireless Settings
- Reset Router: กดปุ่ม Reset 10-15 วินาที (ล้างค่าทั้งหมด)
- ถาม Admin/ISP: หากเป็นเครือข่ายบริษัท/องค์กร
สรุปตารางคำสั่งดูรหัสผ่านเร็วๆ
| OS | คำสั่ง/เมนูหลัก |
|---|---|
| Windows 10/11 | Settings > Wi-Fi > Hardware properties / netsh wlan show profile name="SSID" key=clear |
| Windows 7 | Control Panel > Manage wireless networks > Properties > Security |
| macOS | Keychain Access > Show password / security find-generic-password -wa "SSID" |
| Linux (NM) | sudo cat /etc/NetworkManager/system-connections/SSID.nmconnection / nmcli -s -g 802-11-wireless-security.psk connection show "SSID" |
ข้อควรจำ
- Network Security Key = Wi-Fi Password = WPA Key = Passphrase
- ต้องมีสิทธิ์ Admin/Root เพื่อดูรหัสผ่านที่บันทึกในระบบ
- ควรใช้ Password Manager แทนการมองหาทุกครั้ง
- เปลี่ยนรหัสผ่านเป็นระยะ ใช้ WPA2/WPA3