
Contents
Acknowledgments xxiii
Introduction xxv
Part I: PowerShell for Exchange Fundamentals 1
Chapter 1: Getting Started with Windows PowerShell 3
What Is Windows PowerShell? 3
Shell History 4
When Shells Are Better than GUI Interfaces 4
Common Shell Limitations 5
The Power Behind PowerShell 5
PowerShell Basics 6
The Command-Line Interface 6
Cmdlets 8
Discovering Commands and Getting Help 15
Using Pipelines 23
Running Scripts 29
Preparing Exchange Management Shell 30
Summary 31
Chapter 2: Using Exchange Management Shell 33
Why Learn Exchange Management Shell? 34
Shell versus Console 34
Direct Comparison 34
Exchange Management Console 37
Exchange Cmdlet Sets 38
Working from the Command Line 41
Getting Around 41
Windows PowerShell Drives 43
Working with Output 45
Using Variables, Aliases, and Functions 48
Using Profiles 52
ftoc.indd xiiiftoc.indd xiii 12/17/07 4:08:45 PM12/17/07 4:08:45 PM