Chapter 11. Configuring Windows 7 with netsh

This chapter provides information and commands concerning the following topics:

Understanding netsh

Understanding contexts

Configuring a proxy server

Configuring the network interface with netsh

Understanding netsh

The Net Shell (netsh) command is a rich command-line scripting tool that enables you to display and modify the network configuration of local and remote computers. You can run netsh commands from the netsh prompt, from the command prompt, or from a batch file.

For example, if you wanted to open port 5678 on a firewall, you could do it three different ways using netsh, as shown in the following table.

Figure 11-1 shows how these commands look when entered at the command prompt. You ...

Get Windows 7 Portable Command Guide: MCTS 70-680, and MCITP 70-685 and 70-686 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.