Datasheet

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 39
Administering
Service Delivery
PART I
FIGURE 1.14 Selecting the appropriate action for running a PowerShell script
Understand How PowerShell and Active Directory
Work Together
Now that you have a basic understanding of PowerShell, lets take a closer look at
how Active Directory and PowerShell work together. First we’re going to look at the
di erent ways you can interact with Active Directory using PowerShell, and then
we’ll discuss what you have to do to con gure your environment so you can use the
scripts and techniques discussed in this book.
Interact with Active Directory Using PowerShell
Active Directory provides several di erent protocols and methods for users to
interact with it. Traditionally, when you used other scripting and programming
languages to interact with Active Directory, you had a choice of techniques. In
PowerShell, there are two ways to go about it: using the Active Directory Services
Interface or using the Active Directory module. Depending on your Active
Directory implementation, you may be limited to only one of the two ways.
c01.indd 39c01.indd 39 5/12/2011 1:07:54 PM5/12/2011 1:07:54 PM