netsh preliminary - delete wireless network and set shared wireless network

delete wifi

When connecting to the wireless network, the notebook will save the information locally, but if the wireless network password is changed, the previously saved password=password cannot be connected, and an error will be reported.


If the notebook is a windows7 system, you can enter the control panel --> network and internet ------> manage wireless network   , delete the wireless network and reconnect and enter a new password. But recently found that there is no option to delete the wireless network in the control panel of windows8.1. This can be solved by dos command line and netsh command.

win+r, enter cmd and press Enter


Enter and exit at the command line: netsh wlan show profiles to view my wireless network configuration files that already exist in the system


Enter netsh wlan delete profile name="Uncle Wang next door" (note the double quotation marks in English)


That's it. You can reconnect to the wireless network.

Attach the basic operation for later search:

1.netsh wlan show profiles name=""


netsh>wlan show profiles ?

用法: show profiles [[name=]<string>] [interface=<string>] [key=<string>]

parameter:

 tag value

    name - The name of the configuration file to display.

    interface - The name of the interface on which this profile has been configured.

    key - display key in plain file, set key=clear.

Notes:

    Display profile data or list profiles on the system.

    The parameters name and interface are optional.

    If a profile name is given, the contents of the profile will be displayed. Otherwise, only configuration files will be listed

    name and description.


    If an interface name is given, only the specified profile on the given interface will be listed. Otherwise, it will list

    All configuration files with the given name in the system.


    If the key is set to "clear" and the caller is a local administrator,

    then the key will be displayed in plain text.


    Group Policy configuration files are read-only, while user configuration files are

    read-write, and the preferred order can also be changed.

Example:

    show profiles name="profile 1" interface="Wireless Network Connection"

    show profiles name="profile 2"

    show profiles name="profile 3" key=clear

    show profiles

The help information method of the specific command

1. Enter netsh in the cmd window?

2. Enter netsh to enter the netsh command mode, enter? or help

3. Check the specific command: command name?

Setting Up a Laptop Shared Wireless Network

After entering cmd, enter netsh wlan show drivers 

usage:

netsh>wlan show drivers ?

用法: show drivers [[interface=]<string>]

parameter:

    tag value

    interface - The name of the interface for which driver information is displayed.

illustrate:

    Displays the 802.11 WLAN interfaces and drivers on the system

program information.

Example:

    show drivers

If the red line: Yes, it means that your network card supports sharing, otherwise it does not support it.
二:netsh wlan set hostednetwork mode=allow ssid=test key=12345678
mode:是否启用虚拟WiFi网卡,改为disallow则为禁止。
  ssid:无线网名称,推荐最好用英文。(此处以dcn为例,可自由设置)
  key:无线网密码,限定八个以上字符。(此处以12345678为例,可自由设置)
  输入完命令后按回车键运行。


遇到这个情况说明没有权限运行这条命令,进c://windows/system32   找到cmd右键以管理员方式运行就行。



三:去控制面板---->网络和Internet--->更改适配器设置:会发现多出了一个网卡为“Microsoft Virtual WiFi Miniport Adapter”的虚拟无线网络连接,如果没有,就在cmd命令行输入: netsh wlan start hostednetwork






为方便起见,改名为wifi_test 

然后进入控制面板------>网络和Internet------>更改适配器设置。右键当前正在链接的网络。点击“共享”,勾上“允许其他网络用户通过此计算机的internet链接来链接”,选择改过名的“wifi_test”,点击确定OK
(CSDN不能上传图片了,图片以后再传)
这样就可以使用无线网了。注意,在控制面板里把共享的无线网命名为wifi_test,在链接的时候无线网的ssid是 netsh wlan set hostednetwork mode=allow ssid=test key=12345678   中的ssid=test
关闭无线网共享命令: netsh wlan stop hostednetwork  或者 netsh wlan set hostednetwork mode=disallow(cmd要在管理员权限在运行)

Guess you like

Origin blog.csdn.net/u011387521/article/details/41350005