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

Cách đặt lại mật khẩu bảo mật mạng (Network Security Key) trên Windows 10/11

Phân biệt: "Quên mật khẩu Wi-Fi" vs "Đặt lại cấu hình mạng"

  • Xem mật khẩu Wi-Fi hiện tại: Dùng khi quên pass nhưng thiết bị khác vẫn kết nối được.
  • Xóa hồ sơ mạng (Forget network): Xóa mật khẩu đã lưu để nhập lại.
  • Reset Network (Network Reset): Cài đặt lại toàn bộ adapter, driver, cài đặt mạng — dùng khi bị lỗi kết nối liên tục.
  • Reset Credential Manager: Xóa thông tin đăng nhập mạng chia sẻ (NAS, share folder).

1. Xem mật khẩu Wi-Fi đang lưu trên Windows 10/11

  1. Settings → Network & Internet → Wi-Fi → Hardware properties (hoặc Manage known networks → chọn mạng → Properties)
  2. Hoặc: Control Panel → Network and Sharing Center → Click tên mạng Wi-Fi → Wireless Properties → Tab Security → Tick Show characters.
  3. Mật khẩu hiển thị ở ô Network security key.

2. Xóa hồ sơ mạng (Forget Network) để nhập lại mật khẩu

  1. Settings → Network & Internet → Wi-Fi → Manage known networks
  2. Tìm tên mạng (SSID) cần xóa → Click Forget.
  3. Kết nối lại mạng → Nhập mật khẩu mới.

3. Xóa thông tin đăng nhập mạng trong Credential Manager

Áp dụng cho: Mật khẩu chia sẻ file, NAS, VPN, Domain credentials.

  1. Tìm Credential Manager trong Start Menu.
  2. Tab Windows Credentials.
  3. Tìm mục liên quan (ví dụ: tên máy chủ NAS, domain) → Click mũi tên → Remove.
  4. Thử truy cập lại → Nhập lại user/pass mới.

4. Reset Network (Network Reset) — Cẩn thận: Xóa TẤT CẢ cài đặt mạng

Ảnh hưởng: Xóa tất cả Wi-Fi profiles, mật khẩu Wi-Fi, cấu hình Ethernet, VPN, virtual switch, Hyper-V switch. Driver network adapter được cài lại.

  1. Settings → Network & Internet → Advanced network settings (Windows 11) hoặc Status → Network reset (Windows 10).
  2. Click Reset now → Yes.
  3. Máy tính sẽ khởi động lại.
  4. Sau reboot: Kết nối lại Wi-Fi, cấu hình lại VPN, static IP, DNS tùy chỉnh.

Chỉ dùng khi: Mất kết nối ngẫu nhiên, adapter không nhận driver, lỗi "Unidentified network", sau khi gỡ phần mềm VPN/firewall gây xung đột.

5. Quên mật khẩu tài khoản Microsoft / Windows Hello

Nếu quên mật khẩu đăng nhập Windows (không phải Wi-Fi):

  • Màn hình login → I forgot my password → Xác thực email/SMS → Đặt lại.
  • Dùng USB reset disk (nếu đã tạo trước đó).
  • Safe Mode → Command Prompt → net user username newpassword (cần quyền admin).
  • Reset PC: Shift + Restart → Troubleshoot → Reset this PC (mất dữ liệu nếu không backup).

6. Khôi phục mật khẩu Wi-Fi từ Router (nếu quên hẳn)

  1. Xem nhãn dán dưới router: Default SSID/Password.
  2. Truy cập giao diện web router (192.168.x.x) từ thiết bị khác vẫn kết nối được → Wireless Settings → Xem/đổi pass.
  3. Reset router về mặc định (nhấn nút Reset 10-15s) → Dùng pass mặc định trên nhãn → Cấu hình lại toàn bộ.

Tóm tắt nhanh: Lệnh hữu ích (Command Prompt / PowerShell Admin)

# Xem tất cả profile Wi-Fi đã lưu
netsh wlan show profiles

# Xem mật khẩu của một profile (clear text)
netsh wlan show profile name="TEN_SSID" key=clear

# Xóa một profile
netsh wlan delete profile name="TEN_SSID"

# Reset Winsock & TCP/IP (khắc phục lỗi mạng sâu)
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns

Lưu ý quan trọng

  • Backup mật khẩu trước khi Reset Network (dùng lệnh netsh export hoặc ghi chép).
  • Reset Network KHÔNG xóa file cá nhân, ứng dụng, chỉ xóa cấu hình mạng.
  • Nếu dùng laptop doanh nghiệp: IT admin có thể chặn Network Reset qua Group Policy.