How to share a password from a computer connected via Wi-Fi

It's common to have guests over or connect a new device and forget your wireless network password. Fortunately, if you already have at least one Windows computer connected to your Wi-Fi, you can restore access in minutes without having to delve into your router settings or find your ISP contract. The operating system securely stores the security keys for all networks it has ever connected to, and anyone with basic networking skills can retrieve them.

In this article, we will examine in detail several proven methods: from using the graphical interface of the Control Panel to more advanced commands through PowerShell And CMDYou'll learn not only how to see hidden password characters, but also how to create QR codes for quickly sharing access with smartphones. You'll also understand how virtual access points work if your router suddenly becomes overloaded.

It is worth noting that the methods may differ slightly depending on the version of the operating system - be it Windows 10 or the newest Windows 11However, the basic mechanisms for storing wireless network profiles have remained unchanged for many years, ensuring that the instructions described below will work on most PCs and laptops.

Viewing a password through the Windows graphical interface

The easiest and most secure way to find the saved security key is to use standard operating system tools. This method doesn't require complex commands and is ideal for users who rarely interact with system utilities. You'll need desktop access and standard user privileges.

First, you need to open the Run window. Press the key combination Win + R on the keyboard. In the input field that appears, type the command ncpa.cpl and press EnterThis command will instantly open the Network Connections window, which displays all available adapters on your computer, including Ethernet and Wi-Fi.

Find your wireless adapter among the icons. It's usually labeled "Wireless Network" or "Wi-Fi." Right-click on it and select "Status." In the window that opens, look for the "Wireless Network Properties" button. Clicking it will take you to the security settings menu, where you'll find the code you're looking for.

  • 🔍 Find the "Security" tab in the properties window that opens.
  • 👁️ Check the box next to "Show entered characters".
  • 📝 Copy the text that appears to the clipboard or write it down.
⚠️ Attention: If the Security tab is missing or the Properties button is grayed out, it may mean that your account does not have sufficient administrator rights, or the network profile was deleted by the system after updating the drivers.

After removing the mask from the asterisks, you'll see a clear text password. You can now enter it on your phone, tablet, or another computer. This method works reliably, but requires the computer to be physically within range of the network or connected to it.

📊 Which password recovery method do you use most often?
Through Windows settings
Via the command line
Via a router
Written down in a notebook

Using the command line to extract the key

For those who prefer speed and precision, the command line CMD offers a powerful toolkit. It not only lets you find out the password for your current network, but also displays a list of all previously saved profiles, which is especially useful if your device isn't currently connected to the internet but has previously successfully logged in.

Run the command prompt as administrator. To do this, click Win + X and select "Windows Terminal (Admin)" or "Command Prompt (Admin)". The first step is to get the exact name of the network profile. Enter the command netsh wlan show profiles and press Enter.

Find your network name in the list. It may differ from the SSID if you've ever manually renamed the profile, but most often they're the same. Next, use the following syntax to display the data:

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

Please note that the network name must be enclosed in quotation marks if it contains spaces. In the command output, find the "Security settings" section. The "Key Content" line will contain your password in cleartext.

  • 🖥️ Open the console with administrator rights.
  • 📡 Enter the command to show all profiles.
  • 🔑 Use the parameter key=clear for decryption.

This method is great because it works even in safe mode and isn't susceptible to graphical interface glitches. You can also copy the entire command, substituting the network name, and execute it in one step, saving time when frequently working with network settings.

Working with PowerShell: Advanced

PowerShell PowerShell is a more modern alternative to the classic command line, offering advanced scripting capabilities. While its power is overkill for the simple task of viewing passwords, using PowerShell ensures compatibility with the latest versions of Windows and allows for automation if you need to extract passwords from multiple profiles at once.

Run PowerShell as administrator. The basic command is similar to CMD, but PowerShell's syntax allows for more flexible control over the output. Enter the command:

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

However, if you want to get a list of all passwords at once in a convenient format, you can use a script. However, for a one-time task, standard output is sufficient. The main advantage here is the ability to quickly copy the result to a text file for further analysis or transmission.

Parameter Description Importance for the task
netsh Network Configuration Utility Basic command
wlan Wireless network module Indicates Wi-Fi
show profile Show profile Selecting a specific network
key=clear Show key Removes disguise

It's important to understand that PowerShell is case-sensitive in some contexts, although in this particular case, netsh commands are case-insensitive. However, following the correct syntax will help avoid errors when entering the network name.

What to do if the command fails?

If the system reports "Access Denied," make sure you're running the console as an administrator. If the error is related to the profile name, check the exact name using the show profiles command without parameters.

Create a mobile hotspot on your computer

If your goal isn't just to find out a password, but to share internet from a computer already connected to Wi-Fi, you can turn your PC into a full-fledged router. The Mobile Hotspot feature in Windows 10 and 11 lets you broadcast your existing connection to other devices, creating a new wireless network.

Go to Settings → Network & Internet → Mobile HotspotHere you'll see a status switch. Before turning it on, click the "Change" button to set the network name (SSID) and create a new password. This password will be used by other devices to connect to your computer.

In the "Internet Connection Sharing" drop-down list, make sure your primary Wi-Fi adapter, the one your computer uses for internet access, is selected. Once the hotspot is enabled, other devices will be able to connect to your PC just like they would to a regular router.

  • 📶 Open the Mobile Hotspot settings.
  • ⚙️ Set a name and password for the new access point.
  • 🚀 Turn on the "Allow use..." toggle switch.
⚠️ Attention: Using a mobile hotspot significantly increases laptop battery consumption. It's recommended to keep your device plugged in while sharing the internet.

This method is especially useful in hotels or offices where there is a MAC address limit on the number of devices that can connect, or where the router is physically inaccessible. Your computer acts as a bridge, receiving the signal and retransmitting it further.

☑️ Check before launching a hotspot

Completed: 0 / 4

Compatibility and driver issues

Not all network adapters support simultaneous operation (receiving and distributing Wi-Fi). This hardware or driver limitation can interfere with password sharing via a hotspot. If the hotspot button is grayed out or inactive, this is the problem.

Check the Device Manager. Click Win + X and select "Device Manager." Expand the "Network Adapters" branch. Find your wireless adapter (usually listed as "Wireless," "Wi-Fi," or "802.11"). Right-click it and select "Properties," then go to the "Advanced" tab.

Look for the setting related to virtual access points (Virtual Hosted Network, Virtual Wi-Fi, SoftAP). Make sure it's enabled. If you don't see this setting, your adapter may not support tethering, and you'll need to use a USB Wi-Fi adapter that supports this feature.

It's also worth updating your drivers. Visit your laptop or motherboard manufacturer's website and download the latest WLAN driver. Older software versions may not work correctly with new Windows features, blocking network creation.

Security when sharing passwords

Once you've learned your password, the question of how to securely transmit it arises. Dictating complex character combinations verbally or sending them in plaintext via instant messaging is not the best practice, especially in a corporate environment or when untrusted people are nearby.

Modern Android and iOS smartphones can scan QR codes with their cameras for automatic connection. You can generate one directly on your computer using online services or specialized programs, encoding the connection string. This will save guests from having to manually enter characters.

The string format for a QR code looks like this:

WIFI:S:MyNetwork;T:WPA;P:MyPassword;;

Where S — network name, T — encryption type (WPA or WEP), P — password. By generating an image with this code, you can show your phone or tablet screen to your guest, and they'll connect instantly.

Remember that storing passwords in cleartext on your computer potentially exposes your network to risk. If attackers gain physical access to your PC, they can easily retrieve all stored keys. Therefore, it's important to use a strong Windows account password.

Is it possible to delete a saved password?

Yes, use the command netsh wlan delete profile name="NetworkName" in the command line. This will delete the profile and password from the computer's memory.

Frequently Asked Questions (FAQ)

Is it possible to find out the password if the computer is not currently connected to Wi-Fi?

Yes, if the computer has previously connected to this network and the profile has been saved. Windows stores connection history, and the key can be retrieved via the command line, even if there is currently no connection to the router.

Why does the netsh command say "Network adapter not found"?

This may occur if the Wi-Fi adapter driver crashes or the device is disabled in Device Manager. Also, check if Airplane Mode is enabled, which blocks wireless modules.

Does this method work on Windows 7 and XP?

The netsh command line works similarly, but the graphical interface in Windows 7 differs. The security tab is located at: Network and Sharing Center → Manage wireless networks → Network Properties → Security.

How to transfer a password to an iPhone without entering it?

If you have another Apple device already connected to the network, simply bring it close to your new iPhone. A system prompt will appear on the screen asking you to share your password. This works thanks to Apple ID and Bluetooth technology.