Khóa bảo mật mạng (Network Security Key) trên Windows là gì?
Là mật khẩu Wi-Fi của mạng không dây mà máy tính Windows đã từng kết nối. Windows lưu trữ nó trong "Wireless Profile" để tự động kết nối lại.
4 cách xem khóa bảo mật mạng trên Windows 10/11
Cách 1: Network Connections (ncpa.cpl) - Nhanh nhất, mọi phiên bản Windows
- Nhấn Win + R.
- Gõ
ncpa.cplvà nhấn Enter. - Chuột phải vào adapter Wi-Fi (đang có trạng thái Connected) > chọn Status.
- Nhấn nút Wireless Properties.
- Chuyển sang tab Security.
- Tích ô Show characters.
- Ô Network security key sẽ hiển thị mật khẩu Wi-Fi rõ ràng.
Cách 2: Settings App (Windows 11: Properties / Windows 10: View)
- Win + I > Network & Internet > Wi-Fi.
- Chọn Manage known networks (Quản lý mạng đã biết).
- Tìm mạng Wi-Fi cần xem > nhấn vào nó.
- Windows 11: Chọn Properties (Thuộc tính).
- Windows 10: Chọn View (Xem) hoặc nhấn mũi tên xuống.
- Xem mục Network security key / Password.
Cách 3: Command Prompt / PowerShell (Liệt kê tất cả, tự động hóa)
REM 1. Liệt kê tất cả profile Wi-Fi đã lưu
netsh wlan show profiles
REM 2. Xem chi tiết 1 profile (thay "TenWiFi" = tên chính xác, có dấu cách thì giữ nguyên)
netsh wlan show profile name="TenWiFi" key=clear
REM 3. PowerShell: Xuất ra tên mạng + mật khẩu (chỉ hiển thị có pass)
$profiles = netsh wlan show profiles | Select-String "All User Profile" | ForEach-Object { $_.Line.Split(":")[1].Trim() }
foreach ($profile in $profiles) {
$result = netsh wlan show profile name="$profile" key=clear
$key = ($result | Select-String "Key Content").Line.Split(":")[1].Trim()
if ($key) { Write-Host "SSID: $profile | Password: $key" -ForegroundColor Green }
}
Cách 4: File XML Profile (Nâng cao - Backup/Restore)
- Xuất profile:
netsh wlan export profile name="TenWiFi" folder="C:\BackupWiFi" key=clear. - File XML chứa `
` là mật khẩu rõ (key=clear). - Nhập lại:
netsh wlan add profile filename="C:\BackupWiFi\WiFi-TenWiFi.xml" user=all.
Vị trí khóa bảo mật trên Modem/Router (Nguồn gốc)
- Nhãn dán: Mặt đáy/sau/bên - "Wireless Password", "Wi-Fi Key", "WPA Key", "Passphrase".
- Web UI: 192.168.x.x > Wireless > Wireless Security > WPA Pre-Shared Key.
- App quản trị: Tether, Asus Router, Nighthawk, Linksys, Mi Home, AI Life, UniFi.
Phân biệt: Network Security Key vs Password
| Thuật ngữ | Ý nghĩa |
|---|---|
| Network Security Key | Tên kỹ thuật của mật khẩu Wi-Fi (WPA/WPA2/WPA3 Passphrase) |
| Wi-Fi Password | Tên gọi phổ biến, người dùng hiểu |
| WEP Key | Mật khẩu WEP cũ (Hex 10/26 ký tự) - KHÔNG AN TOÀN |
| WPA/WPA2 Passphrase | Mật khẩu WPA/WPA2 (ASCII 8-63 ký tự) |
| WPA3 SAE | Giao thức xác thực đồng thời WPA3 (không dùng passphrase truyền thống) |
| Admin Password | Mật khẩu đăng nhập cấu hình Router - KHÁC hẳn Wi-Fi Password |
Khôi phục khi quên hoàn toàn mật khẩu Wi-Fi
- Kết nối máy tính với router bằng cáp LAN.
- Truy cập Web UI router > Wireless Security > Xem/Đổi pass.
- Nếu quên pass Admin router: Reset router (giữ nút Reset 10-15 giây) > Cấu hình lại từ đầu.
Lưu ý quan trọng
- Chỉ xem được pass của mạng đã từng kết nối và lưu profile.
- Mật khẩu phân biệt chữ hoa/thường (case-sensitive).
- Windows 7/8: Cách 1 (ncpa.cpl) và Cách 3 (netsh) vẫn hoạt động.
- Khuyên dùng WPA2-AES hoặc WPA3. Không dùng WEP, WPA-TKIP.
- Dùng Password Manager (Bitwarden, 1Password, KeePass) lưu trữ an toàn.