Examine tools for configuring network settings
In addition to the Network and Settings section in Settings, you can configure network settings by using a number of tools in Windows. The tool you decide to use depends on your situation and goals.
Network Setup Wizard
Windows provides the Network Setup Wizard, a user-friendly interface that you can use to configure network settings. Windows recognizes any unconfigured network devices on the computer, and then automates the process of adding and configuring them. The Network Setup Wizard also recognizes any wireless networks in range of the computer, and then guides you through the process of configuring them.
You can save network settings to a USB flash drive for use when configuring additional computers, which makes that process quicker. You also can use the Network Setup Wizard to enable sharing across your network for documents, photos, music, and other files.
Windows PowerShell
Although you can use the graphical tools previously described to perform all network configuration and management tasks, sometimes it can be quicker to use command line tools and scripts. Windows has always provided the command prompt for certain network management tools. However, Windows PowerShell provides a number of network-specific cmdlets that you can use to configure, manage, and troubleshoot Windows network connections.
The following table lists some of the network-related Windows PowerShell cmdlets and their purposes.
Cmdlet | Purpose |
---|---|
Get-NetIPAddress |
Retrieves information about the IP address configuration. |
Get-NetIPv4Protocol |
Retrieves information about the IPv4 protocol configuration (the cmdlet Get-NetIP6Protocol returns the same information for the IPv6 protocol). |
Get-NetIPInterface |
Obtains a list of interfaces and their configurations. This does not include IPv4 configuration of the interface. |
Set-NetIPAddress |
Sets information about the IP address configuration. |
Set-NetIPv4Protocol |
Sets information about the IPv4 protocol configuration (the cmdlet Set-NetIP6Protocol returns the same information for the IPv6 protocol.) |
Set-NetIPInterface |
Modifies IP interface properties. |
Get-NetRoute |
Obtains the list of routes in the local routing table. |
Test-Connection |
Runs similar connectivity tests to that used by the Ping command. For example, test-connection lon-dc1. |
Resolve-Dnsname |
Provides a similar function to the NSLookup tool. |
Get-NetConnectionProfile |
Obtains the type of network (public, private, or domain) to which a network adapter is connected. |
Clear-DnsClientCache |
Clears the client’s resolver cache, similar to the IPConfig /flushdns command. |
Get-DnsClient |
Retrieves configuration details specific to the different network interfaces on a specified computer. |
Get-DnsClientCache |
Retrieves the contents of the local DNS client cache, similar to the IPConfig /displaydns command. |
Get-DnsClientGlobalSetting |
Retrieves global DNS client settings, such as the suffix search list. |
Get-DnsClientServerAddress |
Retrieves one or more DNS server IP addresses associated with the interfaces on the computer. |
Register-DnsClient |
Registers all of the IP addresses on the computer onto the configured DNS server. |
Set-DnsClient |
Sets the interface-specific DNS client configurations on the computer. |
Set-DnsClientGlobalSetting |
Configures global DNS client settings, such as the suffix search list. |
Set-DnsClientServerAddress |
Configures one or more DNS server IP addresses associated with the interfaces on the computer. |
For example, to configure the IPv4 settings for a network connection by using Windows PowerShell, use the following cmdlet:
Set-NetIPAddress –InterfaceAlias Wi-Fi –IPAddress 172.16.16.1
Netsh
You also can use the Netsh command ¬line tool to configure network settings. For example, to configure IPv4 by using Netsh, you can use the following example:
Netsh interface ipv4 set address name="Local Area Connection"
source=static addr=172.16.16.3 mask=255.255.255.0 gateway=172.16.16.1
Note
Functionality in the Windows PowerShell network-related cmdlets has largely replaced Netsh.