Working with NetShell

NetShell, also known as netsh, is an indispensable command-line utility for both administrators and developers. Although netsh is primarily aimed at administrators because it allows them to administer network services, it is equally useful to a developer. To start netsh, open a command prompt, and type netsh.


NetShell is available only when you have P2P networking option installed in Windows XP. Although NetShell is installed by default on Windows Vista, you need to allow that as an exception in the firewall for it to work.

The commands in netsh work with the concept of a "context" that determines the networking aspect within which you want to operate and accumulates various possible commands in that context. In most ...

Get Pro WCF: Practical Microsoft SOA Implementation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.