PDF download Download Article PDF download Download Article

Finding WiFi passwords through Command Prompt is a useful method for people who enjoy using the command line, who are using SSH to remotely access a computer or device with windows shell, or who are on a computer they don't own and want to get the WiFi password without using the system password.

Method 1
Method 1 of 2:

Using Windows

PDF download Download Article
  1. Open CMD with administrator permissions (as an admin) on the connected device.
    • Press Win+R or go to your search bar, type cmd, right click and then select Run as administrator. Using this option requires being on the admin account on the device or at least having the admin password.
    • This command returns a list of networks that the device has previously connected to.
    Advertisement
    • Replace with the name of the profile you’d like the password of (if the profile is two words long put quotes around the name). This command is what returns the password along with a lot of other info.
    • The password is either “Security Key” or “Key content”. If not visible re-check if the WiFi connection is a WPA,WPA2, or WEP; you can find that in the first set of information paired with “Type”. If it's not any of those types, then the WiFi password either varies based on user or has an extra set of protection blocking public access.
  2. Advertisement
Method 2
Method 2 of 2:

Using MacOS

PDF download Download Article
  1. Open Terminal. Hover the mouse near the top of the desktop or screen. Find and click on the search icon you should see a pop up with greyed out text saying "Spotlight Search". An alternative way of opening Spotlight is Cmd+Space.
  2. Make sure to replace "your-wifi" with your WI name.[1]
    • You may have to enter your admin username and password.
    • This command should return the WiFi password of the WiFi you're currently connected to, as long as you replace "your-wifi" with the WiFi you're already connected to.
  3. Advertisement

Community Q&A

Search
Add New Question
  • Question
    What if I get the message "key content is not available"?
    BakaOmi
    BakaOmi
    Community Answer
    That message usually appears if you aren't running CMD as an administrator. To run CMD as an administrator, right-click on it and select the option "Run as Administrator" (type in the admin password if it asks for one), and voila. Now retype the netsh command and you'll have the key content.
  • Question
    What do I do if it shows "present" as the security key?
    Ezekiel Akinyelu
    Ezekiel Akinyelu
    Community Answer
    The word present means the password is the current password of the WiFi. Just follow the instructions and you will get what you are looking for.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

Warnings

  • This usually only works for WPA, WPA2, sometimes WEP Wi-Fi connections. Most WiFi are WPA2 unless they are broadcasted by a school, business, or government building.
Advertisement

You Might Also Like

See Who Is Connected to Your Wireless Network See Who Is Connected to Your Wireless Network
Connect Your PC to Your TV WirelesslyMirror Your Screen to a TV: Miracast, Chromecast & Wireless HDMI
Connect a Router to a ModemConnect a Router to a Modem
Change the Name of a Wireless NetworkEasy Ways to Change the Wi-Fi Network Name
Make Your Wireless Network Invisible7 Simple Steps to Hide Your Wireless Network
Find the SSID on a Computer Locate the SSID On Your Computer (Windows & Mac)
Set up a Wireless Network (WiFi) Connection Set Up and Connect to a Wi-Fi Network: Easy Guide
Reset Your Router PasswordReset Your Router Password
Set Up a Wireless Router10 Easy Steps to Set Up a Wireless Router
Use a Router As a SwitchUse a Router As a Switch
Add an HP Printer to a Wireless Network4 Simple Ways To Add an HP Printer to a Wireless Network
Jam a NetworkJam a Network
Create a WiFi Hotspot Using the Command PromptSet Up a Wireless Hotspot on Windows with Command Prompt
Do I Want Data Roaming on or OffData Roaming: Should You Turn It On or Off?
Advertisement

About This Article

Tested by:
wikiHow Technology Team
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 297,862 times.
How helpful is this?
Co-authors: 8
Updated: September 6, 2024
Views: 297,862
Categories: Wireless Networking
Thanks to all authors for creating a page that has been read 297,862 times.

Is this article up to date?

Advertisement