Another explanation: using commands for wireless network configuration (1)

Source: Internet
Author: User

You may configure wireless network properties. Do you know the command configuration? This article is about the command configuration for wireless network configuration. There are detailed command programs in this article. I hope this article will give you a new understanding of wireless network configuration, let's get to know it from another angle.

Netsh literally refers to the network shell. In fact, Netsh is a command line utility that first appeared in the Windows2000 operating system and can help manage network settings in WINDOWS. Since then, Microsoft has continuously improved it and added some new command sets to it.

Added a set of WLAN commands in Vista and Server2008 to manage 802.11 wireless connections and security settings. Now, another WLAN command is added to Win7 and Server2008 R2. Note that the Netsh command not only allows you to configure the local computer, but also allows you to use the login script to configure multiple computers.

The other thing to remember is that the wireless network configuration file is read-only. Such files cannot be modified by using the Netsh WLAN command. However, such files can be imported and exported. You can create and modify wireless network configuration files on the Windows graphic user interface.

Netsh started

After opening the Command Prompt window, enter the Netsh command and the required sub-commands. To view or list all sub-commands, Type Netsh ?. To view the context command, enter a question mark after the context, for example, NetshWLAN?

Command for virtual Wi-Fi

Virtual Wi-Fi is a virtual wireless access point. You can create this access point in Windows 7 and Server 2008 R2. This feature has long been provided by a virtualwi-fi program that Microsoft has abandoned.

You can specify the network name (SSID), but this name will be broadcast to all virtual wireless networks and must enable WPA2-PSK encryption. The function of the virtual wireless network is built into a DHCP server, so users will automatically get the IP address.

To use the features of a virtual wireless network, your wireless network adapter must use a Win7-certified driver. After detecting the supported adapters, Windows automatically adds a connection to the network connection window, known as Microsoft's Wi-Fi micro-port adapter.

The following are the commands related to the new virtual network features:

NetshWLANsethostednetwork: Set the network for wireless hosting. Use the following parameters:

Mode =

Ssid = wireless network name

Key = your password

KeyUsage =

NetshWLANexporthostednetworkprofile: saves the virtual wireless network configuration file as an XML file and uses the following parameters:

Folder = path and file name

Name = wireless network configuration file

NetshWLANstarthostednetwork: Enables and starts a Broadcast Wireless hosting Network

NetshWLANshowhostednetwork: displays the settings of the wireless hosting network, including the list of connected users.

NetshWLANrefreshhostednetwork: sets a new WPA2-PSK key for a virtual wireless network. You only need to enter this command and use your favorite key.

NetshWLANstophostednetwork: Disable and stop the broadcast virtual wireless network.

Remember, Windows does not automatically start the virtual wireless network after the computer recovers from sleep or restarts. If you need to start the virtual network, you must do it manually.

Software developers must also create front-end utilities or use virtual wireless network features in their applications.

To make full use of the virtual wireless network, you can configure the computer to share its Internet connection with users connected to the virtual access point (using the Internet Connection Sharing attribute of Windows ).

To enable Internet Connection Sharing, open the network connection window, right-click the connection to the Internet, and select "properties ". Then, select the "share" tab, select "allow other network users to connect through the Internet connection of this computer", and select "virtual wireless network connection" from the drop-down list box ", click OK ".

Command for displaying the set value

These commands are not for the user to configure, but for the user to view the values of some settings:

NetshWLANshowcreatealluserprofile: determines whether a user can create a wireless network configuration file for all users rather than for himself ..

NetshWLANshowallowexplicitcreds: whether to allow a computer to use the Stored User creden802.1x for 802.1x when a user cannot log on to the computer.

NetshWLANshowonlyusegpprofilesforallowednetworks: displays when the wireless network configuration file of the Group Policy is allowed when the group policy is implemented.


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.