In school, the advantage of this method is that after the lights are turned off, the computer can still have a network before the power is turned off =
From Baidu space, original link http://hi.baidu.com/juncaixc/blog/item/b72d198da97e0abd0e244445.html
======================================================= ================================
1. Make sure that you are using Microsoft Windows 7 or Windows Server 2008 R2.
2. Run the command prompt as an administrator (use the shortcut key win + R to call up the run and Enter cmd to open the command prompt instead of Administrator permission), right-click "command prompt ", select "Run as administrator ".
3. Enter the command netsh WLAN set hostednetwork mode = allow at the command prompt.
4. Enter netsh WLAN set hostednetwork SSID = the name of your desired wireless network key = the password you want to set in the command prompt.
In this step, set the wireless network name and password. The password must be more than 8 characters long.
5. Next, open the network sharing center-change the adapter settings. You will find that a Microsoft Virtual WLAN miniport adapter is added. By the way, this is the wireless network adapter we just virtualized.
6. Enter netsh WLAN start hostednetwork in the command prompt.
This step is to open the virtual wireless network, so that other computers and wireless terminals can find your virtual network.
7. Open the network sharing center and find that you are connected to two networks. One is your wired network and the other is the virtual network.
8. Open Network Sharing Center-change the adapter settings, right-click your connected network adapter (local connection, broadband connection, or wireless connection), select properties, and click share, select the "allow other network users to connect to or from the Internet" option, select the created virtual network from the drop-down menu, and click OK.
9. By now, other computers will be able to share the Internet after they connect to this virtual network!
PS: This method is much more stable than point-to-point network sharing. It is basically no different from wireless routing! In addition, Wi-Fi can be shared after the wireless network is connected, but point-to-point cannot be used because the wireless network adapter cannot connect two wireless networks at the same time.
After the configuration is successful, run cmd as an administrator and enter netsh WLAN start hostednetwork.
For convenience, you can write this statement as start_wifi.bat. In the future, you only need to run this batch as an administrator.