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

Cách tìm khóa bảo mật Wi-Fi (Network Security Key) trên Windows 10/11

Tìm mật khẩu Wi-Fi đã kết nối trên Windows 10/11

Cách 1: Settings (Cài đặt) - Dễ nhất

  1. Win + I → Network & Internet → Wi-Fi
  2. Chọn Hardware properties (thuộc tính phần cứng) hoặc cuộn xuống Manage known networks
  3. Chọn mạng → View (xem) → mật khẩu hiển thị ở Network security key

Cách 2: Control Panel (Bảng điều khiển) - Cũ nhưng chắc

  1. Win + R → ncpa.cpl → Enter
  2. Chuột phải adapter Wi-Fi đang kết nối → Status → Wireless Properties
  3. Tab Security → tích Show characters
  4. Dòng Network security key là mật khẩu

Cách 3: Command Line (Dành cho admin/script)

netsh wlan show profiles
netsh wlan show profile name="Tên_WiFi" key=clear

Mật khẩu ở dòng Key Content.

Cách 4: PowerShell (Lấy tất cả mật khẩu)

(netsh wlan show profiles) | Select-String "\:(.+)$" | ForEach-Object {
    $name = $_.Matches[0].Groups[1].Value.Trim()
    $pass = (netsh wlan show profile name="$name" key=clear) | Select-String "Key Content\s+:\s(.+)$"
    if ($pass) { [PSCustomObject]@{SSID=$name; Password=$pass.Matches[0].Groups[1].Value.Trim()} }
} | Format-Table -AutoSize

Cách 5: File hệ thống (Advanced)

File XML lưu profile: C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}\{SSID}.xml

  • Mở bằng Notepad (Run as Admin)
  • Tìm thẻ <keyMaterial> - nội dung là mật khẩu (đã hash/obfuscate trên Win10+)
  • Cần tool giải mã hoặc dùng cách 3/4

Lưu ý quan trọng

  • Chỉ xem được mật khẩu của mạng đã từng kết nối và chọn "Connect automatically"
  • Cần quyền Administrator cho cách 3, 4, 5
  • Mạng Enterprise (802.1X) không có key hiển thị (dùng certificate/user+pass)

Quên mật khẩu Wi-Fi hiện tại?

  1. Xem nhãn dán dưới router (mặc định)
  2. Đăng nhập giao diện router (192.168.1.1, admin/password)
  3. App nhà cung cấp: My Viettel, My VNPT, My FPT, My Spectrum...
  4. Reset router (nhấn reset 10s) → cấu hình lại từ đầu

Đổi mật khẩu Wi-Fi an toàn

  • Truy cập router → Wireless → Security → WPA2-PSK (AES) / WPA3
  • Mật khẩu: 12+ ký tự, phức tạp, không dùng thông tin cá nhân
  • Lưu vào Password Manager (Bitwarden, 1Password, KeePass)