Wireless sharing-WLAN netsh command in Windows 7

Source: Internet
Author: User

Netsh literally refers to the network shell. In fact, it is a command line utility that first appeared in the Windows 2000 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. For example, a set of WLAN commands are added to Vista and Server 2008 to manage 802.11 wireless connections and security settings. Now, another WLAN command is added to Win7 and Server 2008 R2.
Remember, the Netsh command not only allows you to configure local computers, but also allows you to configure multiple computers using logon scripts.
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, netsh wlan?

Wordend
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:
Netsh wlan set hostednetwork: set for a wireless hosted network. Use the following parameters:
Mode = {allow | disallow}
Ssid = wireless network name
Key = your password
KeyUsage = {persistent | temporary}
Netsh wlan export hostednetworkprofile: saves the configuration file of the virtual wireless network as an XML file and uses the following parameters:
Folder = path and file name
Name = configuration file of the wireless network
Netsh wlan start hostednetwork: Enable and start the Broadcast Wireless hosting Network
Netsh wlan show hostednetwork: displays the settings of the wireless hosting network, including the list of connected users
Netsh wlan refresh hostednetwork: sets a new WPA2-PSK key for a virtual wireless network. You only need to enter this command and use your favorite key.
Netsh wlan stop hostednetwork: 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 ".
Wordend
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:
Netsh wlan show createalluserprofile: You can determine whether you can create a wireless configuration file for all users rather than yourself ..
Netsh wlan show allowexplicitcreds: whether to allow a computer to use the Stored User creden802.1x for 802.1x when a user cannot log on to the computer.
Netsh wlan show onlyusegpprofilesforallowednetworks: displays when the wireless configuration file of the Group Policy is allowed when the group policy is implemented.
Other commands
The following Netsh WLAN commands do not belong to any specific purpose:
Netsh wlan reportissues: Creates a fault diagnosis report for wireless network connection problems, which is located in the C: \ Windows \ Tracing folder.
Netsh wlan set allowexplicitcreds: when a user does not log on to the computer, specify whether to allow the computer to use the Stored User Logon credential for 802.1x authentication. Use the following parameter: allow = {yes | no}
Netsh wlan set blockperiod: This command specifies the number of minutes that the client must wait before attempting to connect to the network after an unsuccessful logon attempt on the client.
Netsh wlan set profiletype: defines whether the current user of the computer or all users use the configuration file of the wireless network. The configuration parameters are as follows:
Name = configuration file name
Profiletype = {all | current}
Wordend
More commands
We have read several new commands for the first time in win7 and Windows Server 2008 R2. In fact, there are several wireless network commands:
Netsh wlan show networks: lists all neighboring wireless networks detected, including their SSID, authentication, and encryption settings.
Netsh wlan connect: try to establish a connection with the specified network and use the following parameters:
Ssid = wireless network name
Name = configuration file name
Interface = interface Name
Netsh wlan export profile: allows you to export a Wireless Configuration File Created on the WINDOWS graphical user interface to an XML file, you can import it to another computer or back up it:
Folder = path and file name
Name = configuration file name
Interface = interface Name
The following is an example:

Netsh wlan add profile: allows users to import wireless configuration files from an XML file
Filename = path and file name
Interface = interface Name
User = {all | current}]
Wordend
<! -- Publish_helper_end --> <! -- {09 subject display} -->

Author "yeelor"
 

Related Article

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.