Create virtual shared WIFI on the basis of Windows operating system

On the basis of the Windows system, a virtual WIFI is created through the local network so that other devices can share the local network.

Create WIFI

Run CMD as an administrator and run the following code in two steps:

C:\>netsh wlan set hostednetwork mode=allow ssid=mybook key=1234567890
承载网络模式已设置为允许。
已成功更改承载网络的 SSID。
已成功更改托管网络的用户密钥密码。
C:\>netsh wlan start hostednetwork
已启动承载网络。

After the operation is successful, a private network named mybbook is generated in the network and sharing center of the control panel.

Set up a shared network

Open the properties of the generated private network name and set up Internet sharing for the private network. Select an available local network and let the virtual WIFI share the bandwidth of the local network.
Insert picture description here

One key to establish virtual WIFI

Realize one-click establishment of virtual WIFI through Windows batch file, save the following code to batch file (bat). Every time you use it, you can start the batch file as an administrator.

::如果找不到资源,重启Microsoft Hosted Network Virtual Adapter
netsh wlan set hostednetwork mode=allow ssid=mybook key=1234567890
netsh wlan start hostednetwork
pause
netsh wlan stop hostednetwork
netsh wlan set hostednetwork mode=disallow
netsh interface set interface "mybook" DISABLED
netsh interface set interface "mybook" ENABLED
pause

Guess you like

Origin blog.csdn.net/MyFreeIT/article/details/109282064