Datasheet

48 CHAPTER 1
USING POWERSHELL WITH ACTIVE DIRECTORY
Infrastructure infrastructureUpdate CN=Infrastructure,DC=contoso,
DC=com
Jenny Smith contact CN=Jenny Smith,DC=contoso,
DC=com
Jim Johnson user CN=Jim Johnson,DC=contoso,
DC=com
Joe User contact CN=Joe User,DC=contoso,DC=com
LostAndFound lostAndFound CN=LostAndFound,DC=contoso,
DC=com
Managed Service A... container CN=Managed Service Accounts,
DC=contoso,DC=com
NTDS Quotas msDS-QuotaContainer CN=NTDS Quotas,DC=contoso,
DC=com
Program Data container CN=Program Data,DC=contoso,
DC=com
Sara Smith user CN=Sara Smith,DC=contoso,
DC=com
Sara Smith2 user CN=Sara Smith2,DC=contoso,
DC=com
Sara Smith3 user CN=Sara Smith3,DC=contoso,
DC=com
System container CN=System,DC=contoso,DC=com
temp organizationalUnit OU=temp,DC=contoso,DC=com
Template user CN=Template,DC=contoso,DC=com
Users container CN=Users,DC=contoso,DC=com
You’ll be using the AD drive throughout the remainder of this book, so you may
want to take a few minutes now and become familiar with navigating around the
AD drive in PowerShell.
Use Windows Management Instrumentation
When you automate Active Directory with PowerShell, you’ll use one additional
technique: the Windows Management Instrumentation (WMI) interface. WMI
isn’t used for interacting with Active Directory per se; rather, it’s used for interact-
ing with the Windows operating system.  is is important because you may have
to do some things to Windows that a ect its interaction with Active Directory,
even though you’re not touching Active Directory itself. For example, in Chapter 5,
c01.indd 48c01.indd 48 5/12/2011 1:07:57 PM5/12/2011 1:07:57 PM