Win7 hotspot settings! There is a hot spot at startup. once and for all

Source: Internet
Author: User

Win7 hotspot settings! There is a hot spot at startup. once and for all

This method does not need to run any software, does not occupy system resources, so that there is a hot spot on the boot, shutdown will be disconnected, It is very convenient once and for all. Of course, you can also manually control when to switch the hotspot, and the switch is also very convenient. The principle is to use Microsoft Virtual WiFi Miniport Adapter that comes with win7
Www.2cto.com
Condition: A Windows 7 running PC can be used on both laptop and desktop computers, but a wireless Nic is required, and an unlimited Nic must support the bearer network.

Upper Half
Open vro
First, verify that the wireless network adapter supports the bearer network:
After you enable the "Switch" function of your wireless network adapter, press win + R as the administrator, enter "cmd", and press Enter. Then, enter netsh wlan show drivers in the opened command prompt.
Check whether the supported bearer network is followed by "yes" or "no ". Otherwise, this method will not work.
Www.2cto.com
Then, enter the "netsh wlan set hostednetwork mode = allow ssid = binglanPC key = binglanWiFi" command in the opened command prompt and press Enter, in this way, the virtual Wi-Fi network card is initially enabled and set. PS: This command has three parameters. Mode: whether to enable the virtual Wi-Fi network card. If it is changed to disallow, It is disabled. ssid: wireless network name. It is recommended to use English (take Man_2 as an example). key: wireless network password, more than 8 characters (take 1234567890 as an example)

When you see an additional wireless connection 2 named "Microsoft Virtual WiFi Miniport Adapter" in "network connection", it indicates that the connection is successfully enabled. To distinguish it from other NICs, rename it "WiFi ".
Next, connect to the Internet. In "network connection", right-click the network connection that has been connected to the Internet, and select "properties"> "share"> "allow other ...... Connect (N) "→" WiFi. After you click "OK", the shared Nic icon appears.
PS: the error code "cannot enable shared access: 0x80004005: unspecified error" may appear. In this case, right-click "computer" on the desktop ", choose "manage"> on the left-side menu bar, double-click to open the "service and application" menu → select "service" → find and select "Windows Firewall" on the right → click "enable this "service ", then, perform the preceding operation.
Next, run netsh wlan start hostednetwork in the command prompt to enable the wireless network.
PS: When you change "start" to "stop", you can disable the wireless network.
At last, the Red Cross of the virtual WiFi will disappear, which indicates that the "WiFi Base Station" has been created. Search for the wireless network "Man_2" and enter the password "1234567890" in other laptops to share the internet!

Add script
After the above steps, you can share the internet, but after each shutdown, you must run the command line to enable the WiFi hotspot to boot. The following describes the optimization method. The command line netsh wlan start (stop) hostednetwork is changed to the bat script file.
Open notepad and write the code netsh wlan start hostednetwork
Save and change the generated WiFi ON.txt file to WiFi. bat (you can directly change the subsequent name to bat). Similarly, you can create a new file and write the code to the Code netsh wlan stop hostednetwork to generate a WiFi OFF. bat file.
In this way, you can directly control the WiFi hotspot by double-clicking these two files (I am missing: You must right-click to run as an administrator)
PS: I don't know how to modify the subsequent name.
Open "computer" and click "Organization" -- "folders and search options" -- "View" -- find "Hide extended names of known file types" and cancel the preceding check box, you can see the subsequent name of the file and modify it.
Automatic startup
Finally, attach a method to automatically run the WiFi ON file upon startup, that is, the method for automatically enabling WiFi hotspots upon startup.
Click Start> Run and enter Gpedit. msc "; enable" Group Policy "→" Local Computer Policy ", there are two options:" Computer Configuration "and" user configuration ", expand "user configuration> management template> system> Logon", and double-click the "run these programs at User Logon" subitem to set properties, select "enabled" in "Settings" and click "show" to bring up the "show content" window. Add the path of the file to be started after the application is applied, it is automatically enabled. In this way, the WiFi hotspot will be automatically enabled every time the instance is started.

The upper part ends ......
Lower half (I cannot enable it automatically by trying to enable automatic wifi, but cannot enable it as an administrator)
Note: Due to Windows 7 security policy restrictions, WIFI hotspots cannot be automatically enabled as administrator, resulting in automatic connection failure. At present, there is only one solution, which can be achieved by the task scheduler. For detailed steps, refer:
Press the Windows logo key + R on the keyboard, and then type taskschd. msc in the "run" dialog box to open the task scheduler.
Follow in sequence
Are you sure you want to exit shutdown and restart.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.