How to Use netsh wlan show profiles to View and Manage WiFi Networks on Windows

You need to see which WiFi networks your Windows computer remembers. Maybe you forgot a password, or you want to clean up old networks. The netsh wlan show profiles command shows you every WiFi network your computer has ever connected to.

This guide explains exactly how to use this command, what it shows you, and how to extract passwords and manage your saved networks.

What Does netsh wlan show profiles Do?

The netsh wlan show profiles command lists all wireless network profiles stored on your Windows computer. Each time you connect to a WiFi network, Windows saves a profile with the network name, security settings, and password.

Table of Contents

This command accesses that stored information through the Command Prompt or PowerShell. It’s built into Windows 10 and Windows 11, no extra software needed.

What you get:

  • Network names (SSIDs) of all saved WiFi connections
  • Basic profile information
  • Access to retrieve saved passwords
  • Ability to delete old or unwanted networks

How to Run netsh wlan show profiles

Step 1: Open Command Prompt

Press the Windows key and type “cmd” or “command prompt.” Right-click and select “Run as administrator.” You don’t always need admin rights for basic viewing, but you’ll need them to see passwords.

Step 2: Type the Command

Enter this exactly:

netsh wlan show profiles

Press Enter.

Step 3: Read the Results

You’ll see a list like this:

Profiles on interface Wi-Fi:

User profiles
-------------
    All User Profile     : HomeNetwork
    All User Profile     : CoffeeShopWiFi
    All User Profile     : Office_Guest

Each line shows a saved network name. The “All User Profile” means every user account on this computer can see and use this network.

How to See a WiFi Password Using This Command

Seeing the network name isn’t enough. You want the actual password.

Get the Password for a Specific Network

Type this command, replacing “NetworkName” with the exact network name from your list:

netsh wlan show profile name="NetworkName" key=clear

Example:

netsh wlan show profile name="HomeNetwork" key=clear

Important: The network name must match exactly, including spaces and capitalization. Use quotes around the name.

See also  How to Stake Cross-Chain Tokens Seamlessly: A Practical Guide

Find the Password in the Output

Scroll through the results until you see “Security settings.” Look for this line:

Key Content            : YourPasswordHere

That’s your WiFi password.

If you see “Key Content : Absent” instead, the network doesn’t have a saved password, or you don’t have permission to view it.

Understanding the Full Profile Information

When you run the detailed command with key=clear, you get much more than just the password.

Connection Settings

SSID Name: The network’s broadcast name. This is what you see when you search for WiFi.

Network Type: Usually shows “Infrastructure” for standard WiFi routers. “Adhoc” means a direct computer-to-computer connection.

Radio Type: Shows which WiFi standard the network uses, like 802.11n, 802.11ac, or 802.11ax (WiFi 6).

Security Information

Authentication: Common types include WPA2-Personal, WPA3-Personal, or Open (no password).

Cipher: The encryption method, usually AES for modern networks.

Security Key: Whether the network requires a password (Present) or not (Absent).

Connection Behavior

Connect Automatically: Shows if Windows will auto-connect when this network is in range.

Connect Even if Not Broadcasting: Some networks hide their SSID. This setting shows if your computer will still connect.

Common Uses for This Command

Recovering a Forgotten Password

You connected to your home WiFi months ago. Now you need the password for a guest’s phone, but you don’t remember it. Run the command, get the password, share it with your guest.

Auditing Saved Networks

Your laptop has connected to dozens of coffee shops, airports, and hotels. These saved profiles can clutter your system. List them all to see what’s stored.

Troubleshooting Connection Issues

Sometimes Windows tries to connect to an old network with outdated credentials. Viewing the profile helps you identify and delete problematic entries.

Setting Up a New Device

You need to connect a phone or tablet to your network, but the router is in the basement and the sticker is worn off. Pull the password from your computer instead of hunting for the router.

How to Delete WiFi Profiles You Don’t Need

Old network profiles serve no purpose and can cause confusion. Here’s how to remove them.

Delete a Single Profile

netsh wlan delete profile name="NetworkName"

Example:

netsh wlan delete profile name="CoffeeShopWiFi"

You’ll see a confirmation message if successful.

Delete All Saved Profiles

Warning: This removes every WiFi network. You’ll need to reconnect and re-enter passwords for networks you use.

netsh wlan delete profile name=* 

Use this when you’re selling your computer, troubleshooting major WiFi issues, or starting fresh.

Exporting and Importing WiFi Profiles

You can save a network profile as a file and transfer it to another computer.

Export a Profile

netsh wlan export profile name="NetworkName" folder=C:\WiFiProfiles

This creates an XML file in the specified folder. The file contains all settings except the password (unless you’re an administrator).

Export with Password

Run Command Prompt as administrator, then:

netsh wlan export profile name="NetworkName" key=clear folder=C:\WiFiProfiles

The XML file now includes the plaintext password.

Import a Profile on Another Computer

Copy the XML file to the other computer. Then run:

netsh wlan add profile filename="C:\WiFiProfiles\NetworkName.xml"

Windows adds the network to the saved profiles list.

Troubleshooting Common Errors

“The Wireless AutoConfig Service is Not Running”

Windows needs this service to manage WiFi. Fix it:

  1. Press Windows + R
  2. Type “services.msc” and press Enter
  3. Find “WLAN AutoConfig”
  4. Right-click and select “Start”

Try the netsh command again.

“There is No Wireless Interface on the System”

Your computer doesn’t have a WiFi adapter, or it’s disabled.

Check if disabled:

  1. Open Device Manager
  2. Look under “Network adapters”
  3. Find your wireless adapter
  4. If it shows a down arrow, right-click and select “Enable”

If missing entirely: You’re on a desktop without WiFi, or the adapter hardware failed.

See also  Function Keys Not Working: Quick Troubleshooting Guide

“The Parameter is Incorrect”

You probably mistyped the network name. Common mistakes:

  • Forgot the quotes around names with spaces
  • Wrong capitalization (WiFi is different from wifi)
  • Extra spaces before or after the name

Copy the exact name from the profile list and paste it into your command.

Security Considerations When Using This Command

Anyone with Access to Your Computer Can See Passwords

If someone can open Command Prompt on your unlocked computer, they can extract all your WiFi passwords. This is why you should:

  • Lock your computer when you step away
  • Use a strong Windows login password
  • Enable BitLocker encryption on laptops

Malicious Scripts Can Extract Passwords

A bad actor could create a script that automatically runs netsh commands and emails them the results. This is a real attack vector.

Protect yourself:

  • Don’t run scripts from untrusted sources
  • Keep your antivirus updated
  • Use a standard user account for daily tasks, not an administrator account

Public Computer Warning

Never check your WiFi passwords on a public or shared computer. The command history might be logged, or someone could view it after you leave.

Using PowerShell Instead of Command Prompt

PowerShell offers more flexibility for managing WiFi profiles, especially if you want to process the data.

List All Profiles in PowerShell

netsh wlan show profiles

Same command works in PowerShell.

Get Passwords for All Networks at Once

This PowerShell script loops through all profiles and extracts passwords:

$profiles = netsh wlan show profiles | Select-String "All User Profile" | ForEach-Object { ($_ -split ":")[-1].Trim() }
foreach ($profile in $profiles) {
    $password = netsh wlan show profile name="$profile" key=clear | Select-String "Key Content"
    Write-Host "Network: $profile"
    Write-Host "$password"
    Write-Host ""
}

Copy this into PowerShell (run as administrator) to see all network names and passwords at once.

You can learn more about netsh commands in the official Microsoft documentation.

Alternative Methods to View WiFi Passwords

Through Windows Settings

Windows 11 and some Windows 10 versions show passwords in Settings:

  1. Go to Settings > Network & Internet > WiFi
  2. Click on your current connection
  3. Scroll down and click “View WiFi security key”
  4. Enter your Windows password
  5. The password appears

This only works for your currently connected network.

Third-Party Software

Programs like WirelessKeyView from NirSoft display all saved WiFi passwords in a simple table. These tools use the same netsh commands in the background but present the information more clearly.

Be cautious: Only download from the official NirSoft website. Many fake versions contain malware.

Router Admin Panel

If you have physical access to the router:

  1. Find the router’s IP address (usually 192.168.1.1 or 192.168.0.1)
  2. Enter it in a web browser
  3. Log in with admin credentials
  4. Navigate to wireless settings
  5. View or change the WiFi password

This method works even if Windows doesn’t have the network saved.

Managing Network Priority

When multiple saved networks are available, Windows connects to the strongest signal. But you can influence this behavior.

View Connection Order

Older Windows versions had a priority system you could manually adjust. Windows 10 and 11 simplified this, auto-connecting to known networks based on signal strength and past usage.

Force a Specific Network

If you want Windows to prefer your home network over a neighbor’s stronger signal:

  1. Delete the unwanted network profile
  2. Windows can’t connect to what it doesn’t remember

For more granular control, you need to modify the XML profile file or use Group Policy settings.

Command Prompt vs WiFi Settings GUI

Featurenetsh CommandSettings GUI
View all saved networksYesNo (only available nearby)
See current network passwordYesYes (Windows 11)
See old network passwordsYesNo
Delete network profilesYesYes
Export/Import profilesYesNo
SpeedInstantRequires navigation
Technical knowledge neededModerateMinimal

The command line is faster and more powerful. The GUI is friendlier for basic tasks.

See also  What is systemsettings.exe and Why Is It Running on Your Computer?

When to Use netsh wlan Commands in Scripts

System administrators and power users automate WiFi management with netsh commands.

Deployment Scenario

You’re setting up 50 new computers for an office. Instead of manually connecting each to WiFi:

  1. Export the WiFi profile from one configured computer
  2. Copy the XML file to all other computers
  3. Run a script that imports the profile automatically

This saves hours of repetitive work.

Remote Management

If you manage computers remotely, you can run netsh commands through remote PowerShell or a remote desktop connection. This helps troubleshoot WiFi issues without being physically present.

Regular Maintenance

Some IT departments run monthly scripts that delete WiFi profiles older than 90 days. This prevents computers from holding onto guest networks from conferences or travel.

Understanding WiFi Profile XML Structure

When you export a profile, you get an XML file. Here’s what’s inside:

<?xml version="1.0"?>
<WLANProfile xmlns="...">
    <name>NetworkName</name>
    <SSIDConfig>
        <SSID>
            <name>NetworkName</name>
        </SSID>
    </SSIDConfig>
    <connectionType>ESS</connectionType>
    <connectionMode>auto</connectionMode>
    <MSM>
        <security>
            <authEncryption>
                <authentication>WPA2PSK</authentication>
                <encryption>AES</encryption>
            </authEncryption>
            <sharedKey>
                <keyType>passPhrase</keyType>
                <protected>false</protected>
                <keyMaterial>YourPasswordHere</keyMaterial>
            </sharedKey>
        </security>
    </MSM>
</WLANProfile>

Key elements:

  • name: The profile name Windows uses
  • SSID: The actual network broadcast name
  • connectionMode: “auto” means connect automatically
  • authentication: Security type (WPA2PSK, WPA3SAE, etc.)
  • keyMaterial: The password in plaintext

You can edit this file to change settings, then reimport it.

Advanced netsh wlan Commands

Show WiFi Adapter Information

netsh wlan show interfaces

This displays your adapter status, connection speed, signal strength, and channel.

Show Available Networks

netsh wlan show networks

Lists all WiFi networks currently in range, not just saved ones.

Show WiFi Drivers

netsh wlan show drivers

Provides detailed information about your WiFi adapter’s driver, including supported features like 5GHz support.

Block a Network

You can’t directly block a network, but you can prevent auto-connection:

netsh wlan set profileparameter name="NetworkName" connectionmode=manual

Windows will no longer automatically connect. You’ll have to select it manually.

For comprehensive guidance on WiFi network management, the Windows networking documentation provides additional context and troubleshooting steps.

Privacy Implications of Saved WiFi Profiles

Your list of saved networks reveals where you’ve been. It’s a location history stored on your computer.

What this reveals:

  • Your home network name
  • Your workplace
  • Coffee shops you frequent
  • Hotels you’ve stayed at
  • Airports you’ve used

Who can access this:

Anyone with physical access to your unlocked computer, law enforcement with a warrant, or malware running on your system.

Protection strategies:

Delete network profiles after traveling, use a VPN even on trusted networks, and encrypt your hard drive with BitLocker.

Troubleshooting: Profile Exists But Won’t Connect

Sometimes Windows shows a network profile, but the connection fails.

Corrupted Profile

Delete and recreate:

netsh wlan delete profile name="NetworkName"

Then reconnect normally through WiFi settings.

Changed Router Settings

If the network owner changed the password or security type, your saved profile won’t work. Delete it and reconnect with the new credentials.

Network Band Mismatch

Some networks broadcast on both 2.4GHz and 5GHz with the same name. If your saved profile specifies one band but the router changed, it might fail. Delete and reconnect to let Windows detect the current configuration.

Frequently Asked Questions

Can I use netsh wlan show profiles on Windows 7?

Yes. This command works on Windows 7, 8, 10, and 11. The syntax is identical across all versions. Windows 7 users should note that Microsoft ended support in 2020, so security updates are no longer available.

Why don’t I see some networks I’ve connected to?

Three possible reasons. First, you or another user already deleted that profile. Second, the profile was created under a different Windows user account, and you’re looking at your own account’s profiles. Third, enterprise networks with special authentication sometimes don’t create standard profiles.

Does this work on Mac or Linux?

No. The netsh command is Windows-only. Mac users can find WiFi passwords in Keychain Access. Linux users can check /etc/NetworkManager/system-connections/ for saved network files, though this requires root access.

Can I recover a WiFi password from a profile without key=clear?

No. Without the key=clear parameter, the password section shows as hidden. You must include that parameter and run Command Prompt as administrator to see passwords in plaintext.

Is it legal to extract WiFi passwords this way?

Yes, on your own computer. You’re accessing information your computer already stores. However, using these passwords to access networks without authorization is illegal. Only connect to networks you have permission to use.

Summary

The netsh wlan show profiles command gives you complete visibility into every WiFi network your Windows computer remembers. You can view basic network lists, extract forgotten passwords, delete old profiles, and even export configurations to other computers.

The basic command shows network names. Adding key=clear to a specific profile reveals the password. Deleting unwanted profiles keeps your system clean. Exporting profiles helps with deployment or backup.

This built-in tool requires no extra software. It works from Windows 7 through Windows 11. Anyone comfortable with Command Prompt can use it effectively.

Remember that these passwords are sensitive. Protect your computer with strong authentication and encryption. Delete profiles you no longer need. Lock your screen when you step away.

Master this command, and you’ll never lose access to a network password again. You’ll troubleshoot connection issues faster. You’ll manage networks across multiple computers efficiently.

MK Usmaan