Wireless Sharing - WLAN netsh command in Windows 7

  

Netsh literally means a network shell. In fact, it is a command line utility that first appeared on the Windows 2000 operating system. It helps manage the network in WINDOWS. Settings. Since then, Microsoft has continued to improve it, adding some new command sets to it. For example, a set of WLAN commands has been added to Vista and Server 2008 to provide management of 802.11 wireless connectivity and security settings. Additional WLAN commands have been added to Win7 and Server 2008 R2. Keep in mind that the Netsh command not only lets you configure your local computer, but it also allows you to configure multiple computers with a login script. Another aspect to remember is that the wireless network profile is read-only. Such files cannot be modified by using Netsh's WLAN commands, but such files can be imported and exported. The wireless network configuration file can be created and modified through the normal Windows graphical user interface. Netsh Start After opening the Command Prompt window, enter the netsh command and the required subcommands. To view or list all subcommands, type netsh ?. To view context commands, you can enter a question mark after the context, for example, netsh wlan ?


wordend Commands 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 been available in a VirtualWi-Fi program that Microsoft has given up. You can specify the network name (SSID), but this name will be broadcast to all virtual wireless networks and WPA2-PSK encryption must be enabled. The function of the virtual wireless network is built into a DHCP server, so users will automatically assign an IP address. To use the features of a virtual wireless network, the user's wireless network adapter must use a Win7 certified driver. After detecting the supported adapters, Windows automatically adds a connection to the network connection window called Microsoft's Wi-Fi Microport Adapter. Here are the commands related to the characteristics of this new virtual network: netsh wlan set hostednetwork: For wireless hosted networks, use the following parameters: mode = {allow| Disallow} ssid = wireless network name key = your password keyUsage = {persistent| Temporary} netsh wlan export hostednetworkprofile: Save the virtual wireless network configuration file as an XML file, using the following parameters: Folder = path and file name Name = wireless network configuration file netsh wlan start hostednetwork: enable and start broadcast wireless hosting network Netsh wlan show hostednetwork: Displays the settings of the wireless hosted network, including the list of connected users netsh wlan refresh hostednetwork: Set a new WPA2-PSK key for the virtual wireless network. You only need to enter this command and you can use your favorite key. Netsh wlan stop hostednetwork: Disables and stops broadcasting virtual wireless networks. Keep in mind that Windows does not automatically start a virtual wireless network after the computer resumes or restarts from hibernation. If you need to start a virtual network, you must do it manually. Software developers must also create front-end utilities or use virtual wireless networking features in their applications. To take full advantage of virtual wireless networks, you can configure your computer to share its Internet connection with users connected to virtual access points (using Windows' Internet Connection Sharing properties). To enable connection sharing on the Internet, you need to open the network connection window, right-click on the connection to the Internet connection and select "Attributes". Then, select the “Share” tab, select “Allow other network users to connect via this computer's Internet connection”, select “Virtual Wireless Network Connection” from the drop-down list box, and click “Determine” ”. Wordend Commands that display set values ​​These commands are not for the user to configure, but for the user to view the values ​​of certain settings: netsh wlan show createalluserprofile: You can know if the user can create a wireless profile for all users instead of themselves. Netsh wlan show allowexplicitcreds: Whether to allow the computer to use the stored user credentials for 802.1x when a user cannot log in to the computer. Netsh wlan show onlyusegpprofilesforallowednetworks: When the group policy is implemented, it shows when the wireless profile of the group policy is allowed. Other Commands The following Netsh WLAN commands are not for specific purposes: Netsh wlan reportissues: Create a troubleshooting report for wireless network connectivity issues. This report is located in the C:\\Windows\\Tracing folder. Netsh wlan set allowexplicitcreds: Specifies whether to allow the computer to use the stored user login credentials for 802.1x authentication when a user is not logged in to the computer. Use the following parameter: allow={yes| No} netsh wlan set blockperiod: This command specifies the number of minutes the client must wait before attempting to connect to the network after an unsuccessful login attempt on the client. Netsh wlan set profiletype: Defines whether the current user or all users of the computer use the wireless network's configuration file. Its configuration parameters are as follows: name = configuration file name profiletype = {all| Current}wordend More Commands Earlier we saw several new commands that first appeared in win7 and Windows Server 2008 R2. In fact, there are several wireless network commands: netsh wlan show networks: List all detected neighboring wireless networks, including their SSID, authentication, encryption settings, and so on. Netsh wlan connect: Try to establish a connection with the specified network, using the following parameters: ssid = wireless network name name = configuration file name interface = interface name netsh wlan export profile: let the user create a wireless created in the WINDOWS graphical user interface The configuration file is exported to an XML file so that you can import it to another computer or back it up: folder = path and file name name = configuration file name interface = interface name Below is an example:


netsh wlan add profile: Let users import wireless configuration files from an XML file filename = path and file name interface = interface name user = {all| Current}]

Copyright © Windows knowledge All Rights Reserved