Computer >> Hướng Dẫn Máy Tính >  >> Kết Nối Mạng >> An Ninh Mạng

Tìm Network Security Code (Mật khẩu Wi-Fi) trên Windows 10: Settings, Control Panel, CMD

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+)

  1. Win + I → Network & Internet → Wi-Fi
  2. Click Hardware properties (hoặc Manage known networks → chọn mạng → Properties)
  3. Kéo xuống: Xem Security type (WPA2-Personal, WPA3-Personal...).
  4. 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)

  1. Win + R → gõ control → Enter → Network and Sharing Center
  2. Click tên mạng Wi-Fi đang kết nối (ví dụ: Wi-Fi (MyHomeNetwork))
  3. Cửa sổ Wi-Fi Status → Click Wireless Properties
  4. Tab Security → Tick checkbox Show characters
  5. Ô 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)

  1. Nhãn dán mặt dưới router: WiFi Password / Passphrase / WPA2 Key / Network Key.
  2. Web GUI: IP Gateway (ipconfig → Default Gateway) → Wireless Settings → Security → Passphrase.
  3. 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)

  1. Xem nhãn router → Default SSID/Password.
  2. Nếu đã đổi và quên: Nhấn nút Reset (lỗ nhỏ mặt sau) giữ 10-15 giây → Router reboot.
  3. Dùng mặc định trên nhãn → Đăng nhập Web GUI → Đặt SSID/Pass mới mạnh.
  4. 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"

  1. Kiểm tra gõ đúng: Chữ hoa/thường, ký tự đặc biệt, không space thừa đầu/cuối.
  2. Forget Network (Quên mạng) trên Windows → Kết nối lại nhập pass mới.
  3. Reset Wi-Fi Adapter: Device Manager → Network Adapters → Wi-Fi Adapter → Disable → Enable.
  4. Cập nhật Driver Wi-Fi từ website hãng (Intel, Realtek, Qualcomm, MediaTek) — không dùng Windows Update.
  5. Router: Reboot, kiểm tra MAC Filtering, Client Limit, Band Steering, AP Isolation.