blog posts

Manage Wi-Fi Network By Issuing Commands In Windows 10

One way to manage a wireless network is to do it by issuing a command in the Windows 10 Command Prompt, which we will teach you how to do in the following.

Although you can manage various aspects of wireless networks using the settings and control panel; But sometimes you may need to do more advanced work.

 For example, recovering a Wi-Fi password for a specific profile or viewing detailed information about saved profiles is not available with some graphical tools.

 If you need to do more advanced work, Windows 10 is equipped with a command line that you can use to view, troubleshoot, and configure all network adapters.

 In this article, we are going to provide the necessary instructions on the steps of wireless network management using the command section (netsh).

How to view saved WiFi profiles in Windows 10

To view the profiles of the wireless network, you can use the following steps:

1: Open the Start menu.

2: Search for Command Prompt and right-click on the desired option and then select Run as administrator.

3: Type the following command to display all the wireless profiles stored on the computer and finally, press Enter:

Netsh wlan show profiles

How to view saved WiFi profiles in Windows 10-1

4: To view the saved profiles of a particular interface, you can type the following command and press Enter:

Netsh wlan show profiles interface = ”WLAN-INTERFACE-NAME”

In this command, you must replace the WLAN-INTERFACE-NAME statement with the real name of the interface. You can also use the netsh interface show interface command to find the name of the network.

For example, this command can display profiles saved for the Wi-Fi interface:

Netsh wlan show pofiles interface = ”wi-fi”

How to view saved WiFi profiles in Windows 10-2

After completing the above steps, the profile of all the wireless networks to which you have previously connected to the computer running the command will be displayed.

How to view WiFi network driver information in Windows 10

To view information about WiFi network driver, you must use the following method:

1: Enter the Start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: Type the following command and press Enter:

Netsh wlan show drivers

How to view WiFi network driver information in Windows 10-1

4: If you want to see the capabilities of the adapter, type the following command and press Enter:

netsh wlan show wirelesscapabilities

How to view WiFi network driver information in Windows 10-2

After completing the steps, you will see that the issued command can also display driver information, including radio frequency type, vendor, version, and wireless authentication support. If you use the above command to view the features, you will see a list of all available wireless features and supported items for the adapter.

How to view WiFi network adapter settings in Windows 10

To check the wireless adapter settings, just follow these steps:

1: Enter the start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: Type the following command to display the wireless settings and press Enter:

Netsh wlan show interfaces

How to view WiFi network adapter settings in Windows 10

4: If you want to see the settings of a particular interface, you can type the following command and press Enter:

netsh wlan show interface name = “WLAN-INTERFACE-NAME”

In the above command, you must replace the actual name of the interface with the phrase WLAN-INTERFACE-NAME. You can use the netsh interface show interface command to view and find the exact name .

For example, this command could show the profiles saved for the Wi-Fi interface:

Netsh wlan show interface name = ”wi-fi”

Once completed, the netsh tool can display all current Wi-Fi settings and information such as address, SSID and more.

How to view the Wi-Fi network security key in Windows 10

You can use the following steps to find out your Wi-Fi password:

1: Enter the start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: Type the following command code to display the WiFi password and press Enter:

netsh wlan show profile name = “WLAN-PROFILE-NAME” key = clear

In the above command, you must replace the profile name with the phrase WLAN-PROFILE-NAME .

For example, this command could display the tsunami network password:

netsh wlan show profile name = “tsunami” key = clear

How to view the Wi-Fi network security key in Windows 10

After completing the steps, you will get acquainted with the network security key of the profile you have specified. Although you can see the current network password through the wireless adapter features in the control panel; But this command can be a great help to recover the network security key.

How to automatically disconnect the Wi-Fi network in Windows 10

Sometimes a device may be configured to automatically connect to different wireless networks, and this connection can exist even when the signal is weak. For these cases, you can run a command that prevents automatic connection to known networks.

To prevent the device from automatically connecting to the Wi-Fi network, you must use the following steps:

1: Enter the start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: Type the following command to cancel the automatic connection and press the Enter key:

netsh wlan set profileparameter name = “WLAN-PROFILE-NAME” connectionmode = manual

In the above command, you must replace the profile name with WLAN-PROFILE-NAME.

For example, this command can disable the automatic connection of the tsunami network:

netsh wlan set profileparameter name = “tsunami” connectionmode = manual

4: To change the network priority, type the following command and press Enter:

netsh wlan set profileparameter name = “WLAN-PROFILE-NAME” connectionmode = auto

In the above command, replace WLAN-PROFILE-NAME with the name of the Wi-Fi network profile you want. For example, this command prioritizes tsunami specifications:

netsh wlan set profileparameter name = “tsunami” connectionmode = auto

How to automatically disconnect the Wi-Fi network in Windows 10

Important Note: Windows 10 will always prioritize the networks you select for automatic connection. If you want to upgrade a network in your list of priorities, you can use the above command.

After completing the steps, Windows 10 will not automatically connect to wireless networks.

How to delete WiFi network profile in Windows 10

When you no longer need to connect to a specific network, you can use the netsh tool to delete the profile you want. To delete the WiFi profile in Windows 10, you can follow the steps below:

1: Enter the start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: Enter the following code and finally press Enter:

netsh wlan delete profile name = “WLAN-PROFILE-NAME”

Finally, you need to replace the network profile name with WLAN-PROFILE-NAME.

For example, this code could delete the tsunami profile:

Netsh wlan delete pofile name = ”tsunami”

How to delete WiFi network profile in Windows 10

After completing the steps, the WiFi network profile will be cleared from the device. If you need to reconnect, you will need to reconnect and provide a network password if needed.

How to export and import Wi-Fi network profiles in Windows 10

In the control panel of older versions of Windows, there was an option to import and export wireless network profiles. This feature was removed in Windows 8.1 and Windows 10 to add new features to allow you to sync settings with your Microsoft account; But it is still possible to do the job using the netsh command line tool.

Export wireless settings

To export wireless settings in Windows 10, you must follow these steps:

1: Enter the start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: To export the wireless profiles stored on the device, you must type the following command and press Enter:

netsh wlan export profile key = clear folder = “FOLDER-PATH”

In this path, you must replace FOLDER-PATH with the destination folder path.

For example, this command exports profiles to the wireless-backup folder:

netsh wlan export profile key = clear folder = “C: \ Users \ username \ Documents \ wireless-backup”

Export wireless settings - 1

To export a specific profile, type the following command and press Enter:

netsh wlan export profile name = “WLAN-PROFILE-NAME” key = clear folder = “FOLDER-PATH”

In the command, you must replace the phrase WLAN-PROFILE-NAME with the name of the profile you want to export, and specify FOLDER-PATH, which is the location of the information.

For example, this command can only export the tsunami profile to the wireless-backup folder:

netsh wlan export profile name = “tsunami” key = clear folder = “C: \ Users \ username \ Documents \ wireless-backup”

Export wireless settings - 2

At the end of the process, all profiles will be exported to the location you specified. The output of the name and path for each backup of the XML file is also displayed.

The export command creates an XML file for each wireless network profile stored on the device. You need to make sure that the file is stored in a safe place, and the reason for this can be the ability of other people to edit them with simple tools.

Add wireless settings

You can use the following steps to add wireless settings in Windows 10:

1: Enter the start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: In order to enter the wireless profiles, type the following command and press the Enter key:

netsh wlan add profile filename = “FOLDER-PATH \ WLAN-EXPORTED-FILE”

In the mentioned command, put the path and name of the file in its special place.

For example, this command enters a specific profile stored in the wireless-backup folder:

netsh wlan add profile filename = “C: \ Users \ username \ Documents \ wireless-backup \ Wi-Fi-tsunami.xml”

Add wireless settings - 1

Important Note: If you have multiple profiles, repeat the steps and be sure to update the file path and file name of the issued profile.

4: To enter the profile into a specific wireless interface and the current user, type the following command and press Enter:

netsh wlan add profile filename = “FOLDER-PATH \ WLAN-EXPORTED-FILE” Interface = “WLAN-INTERFACE-NAME” user = current

In the command, be sure to replace FOLDER-PATH \ WLAN-EXPORTED-FILE with the file path and replace WLAN-INTERFACE-NAME with the desired interface name.

For example, this command enters the settings to the Wi-Fi interface:

netsh wlan add profile filename = “C: \ Users \ username \ Documents \ wireless-backup \ Wi-Fi-tsunami.xml” Interface = “Wi-Fi” user = current

Add wireless settings - 2

After completing the steps, the specifications are entered and the device is allowed to connect to the wireless network without additional configuration.

How to create a Wi-Fi network adapter report in Windows 10

If you need to troubleshoot a wireless connection, you can easily use the following method to create a detailed report:

To create a report, just use the following steps:

1: Enter the start menu.

2: Search for Command Prompt and right-click on the desired result, and finally select Run as administrator.

3: Type the following command and finally press the Enter key :

netsh wlan show wlanreport

How to create a Wi-Fi network adapter report in Windows 10-1

4: Open the following command to open the report and press Enter:

C: \ ProgramData \ Microsoft \ Windows \ WlanReport \ wlan-report-latest.html

How to create a Wi-Fi network adapter report in Windows 10-2

After completing the steps, the report will be reopened with the default browser.

WLAN reports will include a graphic detailing the connection status, such as the start and end time of the connection, along with errors and more. 

This report also shows a summary of the information of the network adapters configured on your system.

 In fact, this is a complete report that can help you find problems with your Wi-Fi connection.