
Chapter 8: Windows Commands
In This Chapter
✓ Getting started with a command window
✓ Taking advantage of command tricks and techniques
✓ Looking at batch files
✓ Using the amazing Net commands
A
lthough Windows sports a fancy graphical interface that makes it
possible to perform most network management tasks by pointing and
clicking, you can also do almost any network management task from a
command prompt. Whether you choose to do so is largely a matter of personal
style. Some network administrators pride themselves in being able to type
Windows commands blindfolded and with two fingers from each hand tied
behind their backs. Others have fully embraced the graphical user interface
and think the command line is for administrators with Unix envy.
So the choice is yours. Skip this chapter if the thought of typing commands
causes you to lose sleep. If you’re willing to venture forth, this chapter
begins with an overview of working from the command prompt. Then, it
describes some of the more useful Windows commands. Finally, this
chapter introduces the fine (and almost lost) art of writing batch files.
Windows Server 2008 includes a brand-new command environment known
as PowerShell. PowerShell is an advanced command processor that has
many sophisticated features that are designed especially for creating
powerful scripts. For more information, see Microsoft’s PowerShell site at
www.microsoft.com/powershell.
Using a Command Window
Command prompts are even older than video monitors. The first computer I
worked on used a teletype machine as its terminal, so the command prompt
was printed on paper rather than displayed onscreen. Surprisingly, though,
the concept of the command prompt hasn’t changed much since those days.
The system displays a prompt to let you know it’s waiting for a command.
When you type the command and press the Enter key, the system reads
your command, interprets it, executes it, displays the results, and then
displays the prompt again so that you can enter another command.
56_625873-bk07ch08.indd 57556_625873-bk07ch08.indd 575 9/21/10 10:41 PM9/21/10 10:41 PM