Network Security Code = Network Security Key = Mật khẩu Wi-Fi
Trên Windows 10, "Network Security Code" thường được gọi là Network Security Key — là mật khẩu (Passphrase / Pre-shared Key) dùng để xác thực WPA2/WPA3-Personal khi kết nối Wi-Fi.
Cách 1: Settings App (Hiện đại, Windows 10 Version 1903+)
- Win + I → Network & Internet → Wi-Fi
- Click Hardware properties (hoặc Manage known networks → chọn mạng → Properties)
- Kéo xuống: Xem Security type (WPA2-Personal, WPA3-Personal...).
- Lưu ý: Settings app Windows 10 KHÔNG hiển thị mật khẩu clear text — dùng Cách 2 hoặc 3.
Cách 2: Control Panel (Xem mật khẩu clear text — Chuẩn, mọi version)
- Win + R → gõ
control→ Enter → Network and Sharing Center - Click tên mạng Wi-Fi đang kết nối (ví dụ: Wi-Fi (MyHomeNetwork))
- Cửa sổ Wi-Fi Status → Click Wireless Properties
- Tab Security → Tick checkbox Show characters
- Ô Network security key hiển thị mật khẩu Wi-Fi rõ ràng.
Cách 3: Command Prompt / PowerShell (Nhanh, tự động hóa, lấy nhiều profile)
Command Prompt (Admin):
netsh wlan show profiles
netsh wlan show profile name="TEN_SSID_CHINH_XAC" key=clear
Tìm dòng: Key Content — đó là mật khẩu.
PowerShell (Admin) — Trích xuất trực tiếp mật khẩu:
$ssid = "TEN_SSID_CHINH_XAC"
$result = netsh wlan show profile name="$ssid" key=clear
if ($result -match "Key Content\s+:\s(.+)") { $matches[1] }
PowerShell One-liner lấy TẤT CẢ SSID + Pass:
netsh wlan show profiles | Select-String "All User Profile" | ForEach-Object {
$ssid = ($_ -split ":")[1].Trim()
$pass = (netsh wlan show profile name="$ssid" key=clear) -match "Key Content\s+:\s(.+)" ? $matches[1] : "(Empty/Open)"
[PSCustomObject]@{ SSID = $ssid; Password = $pass }
} | Format-Table -AutoSize
Cách 4: Trên Router / Access Point (Nguồn gốc)
- Nhãn dán mặt dưới router: WiFi Password / Passphrase / WPA2 Key / Network Key.
- Web GUI: IP Gateway (
ipconfig→ Default Gateway) → Wireless Settings → Security → Passphrase. - App vendor: Nighthawk, Tether, Deco, ASUS Router, Linksys, Google Home, Eero...
Cách 5: Khôi phục mật khẩu nếu quên hẳn (Reset Router)
- Xem nhãn router → Default SSID/Password.
- Nếu đã đổi và quên: Nhấn nút Reset (lỗ nhỏ mặt sau) giữ 10-15 giây → Router reboot.
- Dùng mặc định trên nhãn → Đăng nhập Web GUI → Đặt SSID/Pass mới mạnh.
- Lưu ý: Reset xóa TẤT CẢ cấu hình (Port forwarding, DDNS, VPN, DHCP reservation...). Backup config trước nếu có thể.
Best Practices quản lý Network Security Key
- Dùng Password Manager (Bitwarden, 1Password, KeePassXC) — Sinh pass ngẫu nhiên 20+ chars, tự điền, đồng bộ an toàn.
- Tạo QR Code Wi-Fi (nhiều router/app hỗ trợ) — Khách quét kết nối ngay, không gõ pass.
- Guest Network: SSID + Pass riêng cho khách/IoT, cách ly VLAN, Client Isolation.
- Rotation: Đổi pass 6-12 tháng/lần, hoặc khi nhân viên nghỉ, nghi ngờ rò rỉ.
- Protocol: Chỉ WPA2-AES (CCMP) hoặc WPA3-SAE/GCMP. Tắt WEP, TKIP, WPS.
- Backup Config Router: Định kỳ (hàng tuần/tháng) → Khôi phục nhanh khi sự cố.
Khắc phục lỗi "Network Security Key Mismatch" / "Can't connect"
- Kiểm tra gõ đúng: Chữ hoa/thường, ký tự đặc biệt, không space thừa đầu/cuối.
- Forget Network (Quên mạng) trên Windows → Kết nối lại nhập pass mới.
- Reset Wi-Fi Adapter: Device Manager → Network Adapters → Wi-Fi Adapter → Disable → Enable.
- Cập nhật Driver Wi-Fi từ website hãng (Intel, Realtek, Qualcomm, MediaTek) — không dùng Windows Update.
- Router: Reboot, kiểm tra MAC Filtering, Client Limit, Band Steering, AP Isolation.