5.1 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 such as certreq and
change for administering optional Windows
components such as Certificate Services and Terminal Services. - Commands such as ipxroute for administering legacy
networking components such as NWLink. - Commands such as dir and copy
that have been around since MS-DOS days and with which most readers
are familiar. - Commands such as choice and
echo used only in DOS-style batch files.
Creating scripts for programmatic administration using the Windows
Script Host (WSH) is also not covered; see VBScript in a
Nutshell by Paul Lornax, Matt Childs, and Ron Petrusha
(O'Reilly) for more information on this subject.
|
illustrates the format used for most entries in this chapter.
Exceptions to this format include commands that have multiple modes
(nslookup), multiple contexts
(netsh), or various subcommands
(ftp). In addition, the net and
bootcfg commands are broken down into a series of
separate commands for easier reference.
sample_command |
Syntax
Summary of syntax for running the command.
Options
Summary of syntax options and switches for the command.
Examples
Examples of how to use the command.
Notes
Additional hints, tips, and tricks for using the command.
See Also
Cross-references to topics in Chapter 4 are
capitalized and in italics while
cross-references within this chapter are in constant
width font and lowercase.