Chapter 5. Command Reference

Read This First!

Command-line administration has been greatly enhanced in Windows Server 2003 (WS2003). Dozens of new commands and scripts have been added for administration of Active Directory, disks, event logs, Group Policy, IIS, network diagnostics, the pagefile, printers, processes, shared folders, and the registry. The result is a Windows operating-system platform that now rivals Unix in its ability to support command-line and scripted administration. Windows Management Instrumentation (WMI), though beyond the scope of this book, adds an additional level of programmatic administration capability to almost every aspect of the operating system.

This chapter is an alphabetical reference to command-line tools in WS2003 including their syntax and use. Examples are provided to illustrate the power of each command, and extensive notes provide additional insights and gotchas concerning their use. The commands and scripts in this chapter include general Windows commands, net commands, netsh commands, TCP/IP troubleshooting utilities, and other miscellaneous commands useful for WS2003 administration. Also included is a description of how to use the Windows command interpreter (cmd) itself and a list of environment variables.

Command coverage in this chapter is comprehensive but not exhaustive; as in Chapter 4, the focus here is on the core tasks of everyday administration of WS2003. As a result, certain commands have been omitted; those omitted include:

  • Commands ...

Get Windows Server 2003 in a Nutshell now with the O’Reilly learning platform.

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