Desktop (win10) wireless network is set as a hotspot

1. Run the command prompt as an administrator:

Shortcut key win+R→enter cmd→enter

2. Enable and set the virtual WiFi network card:

Run the command:

netsh wlan set hostednetwork mode=allow ssid=woquanPC key=123456789

as the picture shows
This command has three parameters

  1. mode: Whether to enable the virtual WiFi network card, if it is changed to disallow, it is disabled;
  2. ssid: wireless network name, preferably in English (take woquanPC as an example);
  3. key: wireless network password, more than eight characters (take 123456789 as an example);

The above three parameters can be used alone, for example, only using mode=disallow can directly disable the virtual Wifi network card.
After the opening is successful, go to the third step
3. Set up network sharing
Open the control panel, network and Internet, network and sharing center in turn, change the adapter settings, right-
as the picture shows
click the Ethernet icon, left-click sharing, check the first "Allow other users Connect via this computer's Internet connection"
Select our "virtual Wi-Fi" in the home network connection section (here is the local connection*17, different host connection names are different) 4.
as the picture shows
Turn on the wireless network
and return to our cmd, enter Order:

netsh wlan start hostednetwork

as the picture shows
If the above picture appears, it means the setting is successful. To turn off this wireless network, enter the command

netsh wlan stop hostednetwork

And if you want to enable the wireless network after each boot, you only need to enter the command:

netsh wlan start hostednetwork

That's it.

Problems you may encounter after step 4

as the picture shows
This is caused by the driver version of the wireless network card being too low. For the solution , see Unable to Start the Bearer Network .

Guess you like

Origin blog.csdn.net/yzq199902/article/details/119353866