O'Reilly logo

Learn Windows PowerShell in a Month of Lunches, Third Edition by Don Jones and Jeffery Hicks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Working with many objects, one at a time

The whole point of PowerShell is to automate administration, and that often means you’ll want to perform some tasks with multiple targets. You might want to reboot several computers, reconfigure several services, modify several mailboxes, and so on. In this chapter, you’ll learn three distinct techniques for accomplishing these and other multiple-target tasks: batch cmdlets, WMI (and other object) methods, and object enumeration. Also, you should know that most of the examples in this chapter won’t work on Linux or macOS; they’re (at least currently) Windows-only. But the concepts and techniques here are the same regardless of the OS you’re using.

16.1. Automation for mass management

We ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required