How to Find a WiFi Password in Command Prompt (CMD) + More

You know the WiFi password. At least, your laptop knows it. The machine connects automatically every morning while you stare at the password box on a new phone as if it has personally betrayed you. Fortunately, Windows can display passwords for wireless networks that are already saved on the computer. The fastest route uses Command Prompt and a built-in networking utility called netsh.

This guide shows how to find a WiFi password in Command Prompt on Windows 11 and Windows 10, how to identify the correct network profile, and what to try when the password does not appear. It also covers Windows Settings, Control Panel, your router, iPhone, Android, and Mac, because sometimes the best command is the one you do not need to type.

Quick Answer: The CMD Commands You Need

Open Command Prompt, preferably as an administrator, and run:

Find the exact WiFi profile name, then run:

Scroll to Security settings and look for Key Content. The text beside it is the saved WiFi password.

For example, if the network is named Maple House 5G, enter:

Keep quotation marks around names that contain spaces, punctuation, or other special characters. Tiny quotation marks, enormous reduction in unnecessary frustration.

How the Command Prompt WiFi Password Method Works

Windows creates a wireless profile when a device successfully connects to a WiFi network and saves that connection. The profile can contain the network name, security type, connection preferences, and a protected copy of the network key. The netsh wlan commands let Windows users inspect and manage those profiles.

The command does not guess, crack, intercept, or magically discover a nearby network’s password. It reads a credential already stored on the local computer. Therefore, it normally works only when that Windows installation previously connected to the network and retained its profile.

Step-by-Step: Find a WiFi Password Using CMD

Step 1: Open Command Prompt

  1. Press the Windows key and type Command Prompt or cmd.
  2. Right-click Command Prompt.
  3. Select Run as administrator.
  4. Choose Yes if Windows displays a User Account Control prompt.

An elevated window is recommended because some systems restrict access to protected wireless details. A standard Command Prompt may still show profile information, but administrator rights reduce the chance of receiving an incomplete result.

Step 2: List Saved WiFi Profiles

Type the following command and press Enter:

Under User profiles, Windows lists the wireless networks saved on that PC. These are profile names, which usually match the network’s SSID. Copy the name exactly. Similar-looking networks such as MapleHouse, MapleHouse-Guest, and MapleHouse-5G are separate profiles and may use different passwords.

Step 3: Display the Saved Network Key

Replace YOUR-WIFI-NAME with the profile you found:

In the output, locate:

The value beside Key Content is the saved WiFi password. Network authentication and cipher fields may also appear, but those describe the security method rather than the password itself.

Step 4: Identify the Current WiFi Network

When several profiles are listed and you are unsure which one is active, run:

Look for the SSID field. Then use that exact name in the profile command. Be careful not to confuse SSID with BSSID; the BSSID identifies a specific access point radio and looks like a hardware address.

Optional: Show Only the Password Line

On an English-language Windows installation, you can filter the output:

This shortcut depends on the language used by Windows. If your system translates “Key Content,” run the full command and inspect the Security settings section instead.

What CMD Can and Cannot Recover

Command Prompt can reveal a saved preshared key for many personal WPA2 or WPA3 networks. It cannot recover a password from a network the computer has never joined, a deleted profile, or a credential that was never stored locally.

Business, school, and institutional WiFi may use enterprise authentication rather than one shared password. Those networks can rely on individual usernames, certificates, device management, or other identity systems. In that situation, there may be no reusable Key Content field. Open networks also have no WiFi password to display.

A company-managed PC may hide keys through policy even when the profile exists. Do not attempt to bypass those controls. Contact the organization’s IT department or network administrator.

More Ways to Find a Saved WiFi Password

Use Windows 11 Settings

Current Windows 11 versions can display the password without Command Prompt. Open Settings > Network & internet, select the connected network’s properties, and choose Show beside the WiFi network password. For a previously used network, go to WiFi > Manage known networks, select the network, and use the password display option when available.

Some Windows 11 builds also present a QR code, allowing another phone, tablet, or computer to join by scanning it. This is often safer and faster than reading a long password aloud while someone types “capital B, no, the other B.”

Use Control Panel on Windows 10 or 11

  1. Press Windows + R.
  2. Type ncpa.cpl and press Enter.
  3. Double-click the active WiFi adapter.
  4. Select Wireless Properties.
  5. Open the Security tab.
  6. Check Show characters.

The password appears in the Network security key box. This method is best for the network currently in use; CMD is more convenient for older saved profiles.

Check Your Router or Internet Provider App

If no computer has the password saved, the router may still provide it. First, inspect the router label or setup card. Factory WiFi names and passwords are often printed there, although the label will be outdated if someone changed the credentials.

You can also sign in to the router’s management page or its official mobile app. To find the router’s local address on Windows, run:

Look for Default Gateway under the active WiFi adapter, enter that address in a browser, and sign in with the router administrator account. The router admin password is not necessarily the same as the WiFi password. Once signed in, look under sections such as Wireless, WiFi, Network, or Security.

Find or Share the Password on iPhone, Android, or Mac

On a recent iPhone or iPad, open Settings > WiFi, tap the information button beside a network, and tap the password field. Authentication with Face ID, Touch ID, or the device passcode may be required. Recent Apple systems also store known WiFi networks in the Passwords app.

On many Android devices, open Settings > Network & internet > Internet, select the connected or saved network, and tap Share. After device authentication, Android generates a QR code. Menu names vary by manufacturer.

On a recent Mac, open the Passwords app, choose WiFi, select the network, and reveal or copy the password after authenticating. Older macOS versions may provide the credential through Keychain Access.

Why “Key Content” Is Missing

The Profile Name Is Incorrect

Run netsh wlan show profiles again and copy the profile exactly. Use quotation marks around the entire name. A space before or after the SSID can also cause the command to target the wrong profile or return an error.

Command Prompt Is Not Elevated

Close the window, reopen Command Prompt with Run as administrator, and repeat the command. If the PC is managed by an employer or school, local policy may still block password disclosure.

The Network Uses Enterprise Authentication

A WPA2-Enterprise or WPA3-Enterprise profile commonly uses a username, certificate, or centralized authentication server. There may be no shared password for Windows to display.

The Profile Was Removed

If someone selected Forget, reset Windows networking, reinstalled the operating system, or deleted the profile with netsh wlan delete profile, the stored key is gone. Check another authorized device or the router instead.

Windows Reports No Wireless Interface

The WiFi adapter may be disabled, missing a driver, disconnected, or absent. Open Device Manager and inspect Network adapters. A desktop connected only by Ethernet may have no wireless interface and therefore no WLAN profiles.

Security Steps After Recovering the Password

Treat the recovered key like any other credential. Avoid posting screenshots that show it, pasting it into public chats, or leaving it visible in a shared terminal window. Clear the screen with cls when finished, close Command Prompt, and remove the password from the clipboard if you copied it.

If the password was exposed to someone who should not have it, change it in the router settings. Choose WPA3 Personal when all devices support it, or WPA2 Personal when compatibility requires it. Avoid obsolete WEP security. Use a long, unique WiFi passphrase, keep the router firmware updated, change factory administrator credentials, and create a guest network for visitors or less-trusted smart devices.

Remember that changing the WiFi password disconnects existing devices. Phones, TVs, printers, cameras, speakers, and smart plugs will need the new credential. Make a quick device checklist before pressing Save unless you enjoy an evening-long scavenger hunt through every connected gadget in the house.

Frequently Asked Questions

Does the CMD method work on both Windows 10 and Windows 11?

Yes. The netsh wlan commands are available on both systems, provided the computer has a wireless adapter and a saved WiFi profile.

Do I need administrator permission?

Running Command Prompt as administrator is recommended and may be required to reveal protected key material. Managed-device policies can prevent access even for some local users.

Can CMD find a password for a nearby network I never joined?

No. This method reads saved local profiles; it does not discover or crack unknown network passwords.

Can I run the same command in PowerShell or Windows Terminal?

Yes. netsh is an executable, so the commands generally work in Command Prompt, PowerShell, and Windows Terminal.

Is the WiFi password the same as the router login password?

Not necessarily. The WiFi password connects devices to the wireless network. The router administrator password controls the router’s settings. They should be separate, strong credentials.

Real-World Experience: The Fastest Workflow and Common Surprises

In everyday troubleshooting, the hardest part is rarely the command. It is identifying which network profile matters. A household may have an old router name, a newer mesh network, a guest network, and a phone hotspot saved under nearly identical names. Start with netsh wlan show interfaces when the computer is currently online. That confirms the active SSID and prevents you from confidently copying the password for the printer network from 2019.

The next practical lesson is to copy the profile name rather than retype it. Spaces, hyphens, apostrophes, and creative capitalization can turn a ten-second task into a small detective novel. Put the full SSID inside straight quotation marks. Curly quotation marks copied from a formatted document can also cause trouble, so type the quotes directly in Command Prompt when a pasted command behaves strangely.

Another common surprise is that a PC can connect automatically while the expected key is missing. This often happens on workplace or campus networks. The device may be authenticating with a certificate or an employee account, not a shared household-style passphrase. Seeing no Key Content does not automatically mean Windows is broken. It may mean the network was designed so there is no single password to hand to another device.

For helping a family member connect a phone, the QR-code route is usually better than exposing the raw password. Windows 11, iPhone, and Android can offer sharing features on supported versions. Scanning avoids transcription mistakes and keeps a 24-character passphrase from becoming tonight’s unwanted spelling bee. Still, only share access with people you trust, because a QR code contains the same connection secret in a more convenient package.

Router access is the most reliable fallback when no saved device reveals the key. Use ipconfig to identify the Default Gateway instead of assuming every router lives at the same address. Then use the router maker’s official app or local management page. If the administrator login is unknown, check the documentation from the internet provider or manufacturer before resetting anything. A factory reset can erase custom network names, parental controls, port settings, and other configuration.

Once the password is recovered, take thirty seconds to consider why it was hard to find. Store it in a reputable password manager, label the entry clearly, and record the router administrator credential separately. Do not put the password on a sticky note attached to the router unless everyone with physical access should also have network access.

Finally, avoid third-party “WiFi password finder” downloads when Windows already provides built-in tools. Unknown utilities may bundle advertising, collect credentials, or create more problems than they solve. CMD, Settings, Control Panel, and the router’s official interface cover nearly every legitimate recovery situation. Built-in methods are also easier to audit, explain, and repeat later when another device needs access, especially during travel, equipment replacement, or family tech support, without calling the internet provider every time. The least dramatic tool is usually the best onewhich is disappointing for action movies but excellent for home networking.

Conclusion

To find a WiFi password in Command Prompt, list saved profiles with netsh wlan show profiles, then inspect the correct profile with netsh wlan show profile name="SSID" key=clear. The password appears beside Key Content when Windows has stored a personal-network key and your permissions allow it.

If CMD does not provide the answer, use Windows Settings, Control Panel, another authorized device, or the router’s management interface. Most importantly, recover and share credentials responsibly, then strengthen the network if the password has been exposed.