11AUTOMATING ACTIVE DIRECTORY

Images

One of the best products to automate with PowerShell is Microsoft’s Active Directory (AD). Employees are constantly entering, leaving, and moving around an organization. A dynamic system is needed to keep track of the ever-shifting flux of employees, and that’s where AD comes in. IT pros perform repetitive and similar tasks in AD, making it a perfect site for automation.

In this chapter, we’ll walk through using PowerShell to automate a few scenarios involving AD. Although numerous AD objects can be manipulated with PowerShell, we’ll cover only three of the most common: user accounts, computer accounts, and groups. ...

Get PowerShell for Sysadmins 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.