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 mạng (Network Security Key) trên Windows 10

Tìm mật khẩu Wi-Fi đã lưu trên Windows 10/11

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

  1. Nhấn 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 "Related settings" → "More network adapter options".
  3. Chuột phải adapter Wi-Fi → Status → Wireless Properties → tab Security.
  4. Tích "Show characters" → Network security key hiển thị.

Cách 2: Dòng lệnh (CMD/PowerShell) – Nhanh cho admin

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

Kết quả: tìm dòng "Key Content" – đó là mật khẩu.

Cách 3: PowerShell one-liner lấy tất cả mật khẩu

(netsh wlan show profiles) | Select-String "\:(.+)$" | ForEach-Object { $ssid=$_.Matches[0].Groups[1].Value.Trim(); netsh wlan show profile name="$ssid" key=clear } | Select-String "Key Content"

Cách 4: File XML profile (cần Admin)

Profile lưu tại: C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}\{SSID}.xml
Mở file, tìm <keyMaterial> – mật khẩu được lưu dạng plaintext (nếu không dùng Enterprise).

Lưu ý quan trọng

  • Chỉ xem được mật khẩu của mạng đã kết nối và đã lưu profile.
  • Yêu cầu quyền Administrator cho CMD/PowerShell/File XML.
  • Mạng WPA3-Enterprise (802.1X) không lưu PSK – dùng chứng chỉ/mật khẩu người dùng.

Nếu chưa từng kết nối mạng đó

Không thể lấy khóa từ Windows. Phải:

  • Xem nhãn router/modem.
  • Hỏi quản trị mạng.
  • Truy cập giao diện router (192.168.x.x) → Wireless Security.