In "Introducing the Pipeline and ForEach" and "From One-Liner to ForEach One-Liner," I've shown you how the ForEach cmdlet and the pipeline variable $_ together let you write simple one-liners in a different way. For example, suppose bigfirm.com has an organizational unit (OU) called Machinists, and you want to change the description attribute of every user account to the text Machinist.
↧