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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.