The microserof virtual WiFi miniport adapter in the network adapter is a hidden function of Windows 7, virtual wifi. The traditional temporary Wireless Network (ad hoc) is a point-to-point network, similar to the "dual-host interconnection" in a wired network. Although it can also achieve Internet sharing, it is mainly used for temporary interconnection between two devices, in addition, some devices (such as Android devices) do not support connection to temporary wireless networks. Another serious problem is that a wireless network card can only be connected to one wireless network. Therefore, if you connect to the Internet through a wireless network card, you cannot use the wireless network card to create a temporary network and share the internet. In Windows 7, the virtual WiFi function can Virtualize a network card based on a real wireless network card to implement the AP function of the wireless router, solving all the problems of the temporary network.
1. Run Command Prompt as Administrator
Because the following steps must be run under the Administrator permission, we can find the "command prompt" from the Start menu, or directly Type CMD to quickly search, right-click it, select "Run as administrator" and click "yes" in the pop-up user control window ". Another way is to press Ctrl and shift to directly click the shortcut, Which is simpler.
2. Enable and set the "virtual Wi-Fi network card" Mode
Run the following command to enable the virtual wireless network card (equivalent to enabling the router ):
Netsh WLAN set hostednetwork mode = allow SSID = HH key = 12345678 keyusage = persistent
These commands have three parameters:
Mode: whether to enable the virtual Wi-Fi network card. If it is set to disallow, the virtual network card will disappear.
SSID: Specifies the name of the wireless network, preferably in English.
Key: the password of the wireless network. This password is used to encrypt wpa2 securely on the wireless network, which can prevent network attacks.
Keyusage: Specifies whether the password is valid for a long term or temporary.
The preceding three parameters can be used independently. For example, you can disable a virtual Wi-Fi network card by using mode = disallow only.
3. Enable "Internet Connection Sharing (ICS )"
To share the connected Internet with other computers or devices, we need to enable the "Internet Connection Sharing" function. Open the "Network Connection" window, right-click the network connection that has been connected to the Internet, select "properties", switch to the "share" tab, and select the check boxes, and select the network connection that allows them to share the Internet here is our virtual WiFi network card:
After confirmation, the "shared" icon appears next to the shared Nic icon, indicating that "Internet Connection Sharing" has been activated for the virtual wireless NIC:
4. Enable Wireless Network
Continue to run the following command at the command prompt:
Netsh WLAN start hostednetwork
You can enable the previously set Wireless Network (equivalent to enabling the wireless function of the router. Similarly, change start to stop to disable the wireless network ).
We can see that the virtual wireless network card has enabled the specified wireless network, its IP address and other attributes are allocated by the "Internet Connection Sharing" service, so it is special:
Everything is ready. At last, you only need to connect to the wireless network on the computer or mobile phone that needs to be connected to the Internet, you can directly access the Internet:
One more thing is that "virtual Wi-Fi network card" requires the driver of the real network card. Program Designed and developed specifically for Windows 7. Fortunately, as long as the "Windows 7 logo authentication" wireless NIC Driver supports this mode, we can directly find whether the logo is included when purchasing a wireless Nic. If no virtual wireless network adapter is displayed in the network connection after running the mode = allow command, it means that the real network adapter does not support this function. You can upgrade the NIC driver to the latest Windows 7 version.
In addition, if you want to disable the device, uninstall the device in the Device Manager and refresh it again. The method once and for all is as follows:
Open the command line window with administrator permissions (START-> attachment-> command line prompt, right-click to open with Administrator permission) and enter "netsh WLAN set hostednetwork mode = disallow" to disable the virtual WiFi Function