The Command Prompt remains one of the most powerful built-in tools in Windows for managing wireless network connections. While most users connect to Wi-Fi through the Settings app or the taskbar network menu, Windows includes numerous command-line utilities that provide greater control over wireless adapters, saved Wi-Fi profiles, network diagnostics, and connection settings. These commands can help troubleshoot connectivity issues, view stored wireless passwords, export Wi-Fi profiles, delete outdated network configurations, and gather detailed information about nearby wireless networks.
System administrators, IT professionals, and power users frequently rely on Command Prompt because it offers faster access to advanced networking functions than graphical tools. Even casual users can benefit from learning a few essential commands, especially when dealing with connection problems or managing multiple wireless networks. Most wireless management commands use the built-in netsh utility, which has been part of Windows for many years and continues to work reliably on Windows 11.
The following eight Command Prompt commands are among the most useful for managing wireless networks on Windows computers.
1. View All Saved Wi-Fi Profiles
netsh wlan show profiles
This command displays every wireless network profile stored on the computer. Each profile contains information about a Wi-Fi network that the system has connected to previously. If you have connected to home networks, office Wi-Fi, hotel networks, or public hotspots, they will typically appear in this list.
The command is particularly useful when managing multiple saved networks because it allows users to quickly identify old or unused profiles. Network administrators often use it to audit stored wireless configurations and verify that required network profiles exist on a system.
What It Shows
- Saved Wi-Fi network names (SSIDs)
- User profiles
- Group policy profiles
- Available wireless configurations
Example Output
Profiles on interface Wi-Fi:
Group policy profiles (read only)
---------------------------------
<User Profile>
All User Profile : Home WiFi
All User Profile : Office Network
All User Profile : CoffeeShop WiFi
Benefits
- Lists all saved networks
- Helps identify old profiles
- Useful for troubleshooting connection issues
2. View Wi-Fi Password of a Saved Network
netsh wlan show profile name="WiFi_Name" key=clear
Replace WiFi_Name with the exact wireless network name.
This command reveals detailed information about a saved Wi-Fi profile, including the wireless password stored on the system. It is one of the most commonly used wireless commands because it helps users recover forgotten Wi-Fi passwords without logging into a router’s administration panel.
After running the command, look for the Key Content field under Security Settings. The displayed value is the saved wireless password.
Example
netsh wlan show profile name="Home WiFi" key=clear
Information Displayed
- Authentication type
- Encryption method
- Connection settings
- Wireless password
- Security configuration
Benefits
- Recover forgotten passwords
- Verify wireless security settings
- Useful when adding new devices to the network
3. Display Detailed Wireless Adapter Information
netsh wlan show interfaces
This command provides detailed information about the currently active wireless network adapter. It displays connection status, signal strength, network name, radio type, channel number, receive and transmit rates, and many other technical details.
If a wireless connection is performing poorly, this command can help identify weak signal strength, incorrect channels, or other connection-related issues.
Information Displayed
- Connection state
- SSID
- BSSID
- Radio type
- Signal quality
- Channel number
- Receive rate
- Transmit rate
Example Output
State : connected
SSID : Home WiFi
Signal : 88%
Radio type : 802.11ax
Channel : 36
Benefits
- Check signal strength
- Verify Wi-Fi standards
- Monitor connection quality
4. View Nearby Available Wireless Networks
netsh wlan show networks
This command scans and displays all wireless networks currently within range of the computer. It shows available SSIDs, signal strength, authentication methods, and encryption types.
The command is helpful when troubleshooting network visibility issues or determining which wireless networks are accessible from a particular location.
Information Displayed
- Network names (SSID)
- Signal quality
- Authentication type
- Encryption method
- Infrastructure type
Example Output
SSID 1 : Home WiFi
Signal : 92%
SSID 2 : Guest WiFi
Signal : 65%
Benefits
- Discover nearby Wi-Fi networks
- Compare signal strengths
- Identify network security methods
5. Delete a Saved Wireless Profile
netsh wlan delete profile name="WiFi_Name"
Over time, Windows accumulates numerous saved wireless profiles. Some may become obsolete or cause connection conflicts. This command permanently removes a specified wireless profile from the system.
After deletion, Windows will no longer automatically connect to that network unless it is added again manually.
Example
netsh wlan delete profile name="CoffeeShop WiFi"
Benefits
- Remove outdated networks
- Resolve profile corruption issues
- Improve wireless profile management
Common Uses
- Cleaning old network configurations
- Fixing connection problems
- Removing public hotspot profiles
6. Export Wireless Profiles to a Folder
netsh wlan export profile key=clear folder=C:\WiFiBackup
This command exports all saved wireless profiles to XML files. Including key=clear also saves the wireless passwords inside the exported files.
Administrators frequently use this command when migrating systems or backing up network configurations before reinstalling Windows.
Example
netsh wlan export profile key=clear folder=C:\Backup
Exported Information
- SSID settings
- Security settings
- Password information
- Connection preferences
Benefits
- Backup wireless configurations
- Transfer profiles to another PC
- Preserve network settings
Important Note
Store exported files securely because they may contain Wi-Fi passwords.
7. Import a Saved Wireless Profile
netsh wlan add profile filename="C:\WiFiBackup\Wi-Fi-Home.xml"
After exporting profiles, they can be restored or transferred to another Windows computer using this command.
This feature is extremely useful in business environments where multiple computers require identical wireless configurations.
Example
netsh wlan add profile filename="C:\Backup\HomeWiFi.xml"
Benefits
- Restore backed-up Wi-Fi profiles
- Quickly configure multiple computers
- Simplify network deployment
Common Uses
- Windows reinstallations
- New computer setup
- Enterprise network management
8. Generate a Wireless Network Diagnostic Report
netsh wlan show wlanreport
This command creates a detailed HTML wireless diagnostic report containing information about connection history, failures, adapter behavior, and troubleshooting data.
After execution, Windows generates a report file that can usually be found at:
C:\ProgramData\Microsoft\Windows\WlanReport\wlan-report-latest.html
Opening the report in a web browser provides a visual timeline of wireless events and connection attempts.
Information Included
- Connection history
- Disconnect events
- Error details
- Driver information
- Adapter diagnostics
- Authentication failures
Benefits
- Advanced troubleshooting
- Analyze connection drops
- Diagnose Wi-Fi issues
- Review historical wireless activity
Additional Useful Wireless Commands
Release IP Address
ipconfig /release
Renew IP Address
ipconfig /renew
Flush DNS Cache
ipconfig /flushdns
Display Network Configuration
ipconfig /all
Test Connectivity
ping google.com
Final Thoughts
Windows includes powerful command-line tools for managing wireless networks without installing third-party software. Commands such as netsh wlan show profiles, netsh wlan show interfaces, netsh wlan show networks, and netsh wlan show wlanreport provide valuable information for both everyday users and IT professionals. They can help diagnose connection problems, recover saved passwords, backup network settings, and optimize wireless connectivity.
Learning these eight CMD commands can save time when troubleshooting Wi-Fi issues and provide deeper insight into how wireless networking operates on Windows 10 and Windows 11 systems.


