Batch process quickly create WiFi

Source: Internet
Author: User
Tags hosting

Why use cmd this ancient thing to create WiFi, computer butler, 360 security guards have this plug-in, a key to turn off, how convenient Ah!

Start with the computer butler's free WiFi plug-in, but I can not tolerate it very slow startup shutdown process, every time watching it slow start off, I have to comfort myself once good, the start is good, no longer have to control it, you can peacefully the use of a day, why for this trivial matter!

I unconsciously abide by a certain rule, remember to read a law, specifically not clear, the general meaning is that if you intend to do something, but for other reasons repeatedly postponed, once you delay the n times, you will never do it again. This n does not remember, I set myself 3-4 times, in other words when I am going to do something, the maximum delay four times.

I can't stand it, but I can solve it myself, it costs a lot, why do you have to endure it?

The following steps reproduced in the Baidu experience http://jingyan.baidu.com/article/6b97984d8183eb1ca2b0bfd2.html, mainly to understand the cmd operation of the WiFi process (note: It is not the main course today OH)

  1. Open the Start menu, put the mouse on the "All Programs", and then list all the programs on the system, find and click Open "Accessories", in its list find "command Prompt" (commonly known as CMD), click Open Program.

  2. Under command Prompt (CMD), enter the command: netsh wlan set hostednetwork mode=allow, and then enter. Set the hosting network mode to allow. If you have trouble typing, you can copy the command directly, then right-click on the command prompt and choose Paste. The shortcut key Ctrl + V is useless.

  3. Then continue typing: netsh wlan set hostednetwork ssid= the name of the wireless network you want key= you want to set the password, note: "The name of the wireless network you want" and the following "key" between the space, please refer to the figure of the style) This step is to set the WiFi name and password, and the password must be more than 8 digits.

  4. Open Control Panel, network Sharing Center, change adapter settings, you will find one more network card "Microsoft Virtual WLAN Miniport Adapter", this is the wireless network adapter that we just virtual out, Remember to change adapter name: Wireless network connection 3.

  5. Right-click Local Area Connection (that is, the broadband network card you are connected to), then click Properties--Share, tick the "Allow other network users to connect via this computer's Internet connection" option, and select the virtual network you just established in the drop-down menu: WiFi 3.

  6. Then, at the command prompt, type: netsh wlan start hostednetwork to start hosting the network. This makes it possible to create a hotspot for WiFi, then open the Network Sharing Center in Control Panel, and you can see the wireless network connection you created. Now you can search for your wifi with your phone or laptop.

  7. In the process of turning on WiFi, you can also enter commands at the command prompt: Netsh wlan show hostednetwork, to view established wireless network information, and most importantly, to see the number of clients and MAC addresses of connected users. So you can know if your wifi has been rubbed off the net.

  8. If you want to turn off the WiFi hotspot, you can enter at a command prompt: Netsh wlan stop hostednetwork to stop hosting the network and deactivate the WiFi hotspot.

  9. By mastering these commands, you are free to create WiFi and deactivate wifi on your laptop, although it is cumbersome to enter commands every time you create WiFi, but using commands to create WiFi is relatively stable and reliable, recommended. And you can write these commands into a simple bat program, so that only one key to open the bat can build WiFi, do a bat file is not difficult, you can search the Internet for information, or private messages I can do.

    Here is my own code, put it in the Wifi.bat file, and then throw the Wifi.bat into the C:/windows directory
    ::WiFi boot off@echo offSetv=%1Setvstart=StartSetvstop=StopSetvreset=ResetSetvusers=Users::Start WiFiif"%v%" = = "%vstart%" (Netsh wlanSetHostednetworkMode=Allownetsh WLANSetHostednetwork Ssid=chanbujiao key=Youchanbujiaonetsh WLANStarthostednetworkEchoWiFi Boot success ...)::Turn off WiFiif"%v%" = = "%vstop%" (netsh wlan stop hostednetworkEchoWiFi is off!)::Restart WiFiif"%v%" = = "%vreset%" (netsh wlan stop hostednetworkEchoWiFi is off ...Netsh wlanSetHostednetworkMode=Allownetsh WLANSetHostednetwork Ssid=chanbujiao key=Youchanbujiaonetsh WLANStarthostednetworkEchoWiFi reboot successful ...)::View connected Usersif"%v%" = = "%vusers%" (netsh wlan show hostednetwork)::Delayed ExitPing-n 2 127.1 >nulCLSExit

    Finally, the direct "Start key +r", enter WiFi start to create a name Chanbujiao password for Youchanbujiao wifi; enter WiFi stop to turn off WiFi, enter WiFi Reset to restart WiFi, enter wifi user to view the users connected to WiFi.

    Tip: Be sure to turn on wifi sharing, the above Baidu experience that article has been described.

Batch process quickly create WiFi

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.