Chapter 8. Leveraging the Power of ADO

After completing this chapter, you will be able to:

  • Understand the use of ADO in Windows PowerShell scripts

  • Connect to Active Directory to perform a search

  • Control the way data are returned

  • Use compound query filters

Connecting to Active Directory with ADO

In this section, you will learn a special query technique to search Active Directory using ActiveX Data Objects (ADO). The technique is exactly the same technique you will use to search other databases. You will be able to use the results returned by that custom query to perform additional tasks. For example, you could search Active Directory for all users who don't have telephone numbers assigned to them. You could then send that list to the person in charge ...

Get Microsoft® Windows PowerShell™ Step By Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.