Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the netsh command in win7

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to use the netsh command in win7. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Netsh start

After opening a command prompt window, enter the netsh command and the required subcommands. To view or list all the subcommands, type netsh?. To view contextual commands, enter a question mark after the context, for example, netsh wlan?

Commands for Virtual Wi-Fi

Virtual Wi-Fi is a virtual wireless access point that you can create in windows 7 and Server 2008 R2. This feature is already available in a VirtualWi-Fi program that Microsoft has abandoned.

You can specify a 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 are automatically assigned IP addresses.

To use the features of a virtual wireless network, the user's wireless network adapter must use a Win7-certified driver. When a supported adapter is detected, 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: set up for the wireless managed network, using the following parameters:

Mode = {allow | disallow}

Ssid = wireless network name

Key = your password

KeyUsage = {persistent | temporary}

Netsh wlan export hostednetworkprofile: save the configuration file of the virtual wireless network as a XML file, using the following parameters:

Folder = path and file name

Name = configuration file for the wireless network

Netsh wlan start hostednetwork: enable and start a broadcast wireless managed network

Netsh wlan show hostednetwork: displays settings for the wireless managed network, including a list of connected users

Netsh wlan refresh hostednetwork: set a new WPA2-PSK key for the virtual wireless network. All you have to do is enter this command and use the key you like.

Netsh wlan stop hostednetwork: disable and stop broadcasting virtual wireless networks.

Remember, Windows does not automatically start the virtual wireless network after the computer resumes or restarts from hibernation. 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 take full advantage 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 property of Windows).

To enable connection sharing for the Internet, open a network connection window, right-click on the connection to the Internet, and select Properties. Then, select the sharing tab, select allow other network users to connect through this computer's Internet connection, select Virtual Wireless Network connection from the drop-down list box, and then click OK.

Command to display setting valu

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

Netsh wlan show createalluserprofile: you can see if users can create wireless profiles for all users rather than for themselves. .

Netsh wlan show allowexplicitcreds: whether to allow the computer to use the stored user credentials for 802.1x when a user cannot log on to the computer.

Netsh wlan show onlyusegpprofilesforallowednetworks: displays when the wireless profile of the group policy is permitted when the group policy is implemented.

Other commands

The following Netsh WLAN commands do not belong to any particular purpose:

Netsh wlan reportissues: create a troubleshooting report for wireless network connectivity problems, located in the C:\ Windows\ Tracing folder.

Netsh wlan set allowexplicitcreds: when a user is not logged on to the computer, specify whether to allow the computer to use the stored user login credentials for 802.1x authentication, using 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.

Netsh wlan set profiletype: a profile that defines whether the current user or all users of the computer use the wireless network. The configuration parameters are as follows:

Name = profile name

Profiletype = {all | current}

More commands

Earlier we looked at 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: lists all detected neighboring wireless networks, including their SSID, authentication, encryption settings, and so on.

Netsh wlan connect: try to establish a connection to the specified network, using the following parameters:

Ssid = wireless network name

Name = profile name

Interface = interface name

Netsh wlan export profile: lets users export a wireless profile created in the WINDOWS graphical user interface to a XML file so that you can import it to another computer or back it up:

Folder = path and file name

Name = profile name

Interface = interface name

Thank you for reading! This is the end of this article on "how to use netsh commands in win7". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report