July 2011
Intermediate to advanced
480 pages
11h 54m
English
The fact that PowerShell is an object-based shell gives us a great deal of flexibility when it comes to writing one-liners, scripts, and functions. When generating detailed reports, we need to be able to customize the data output from our code so it can be formatted or piped to other commands that can export the data in a clean, structured format. We also need to be able to control and customize the output from our code so that we can merge data from multiple sources into a single object. In this recipe, you'll learn a few techniques used to build custom objects.
The first thing we'll do is create a collection of mailbox objects that will be used as the data source for a new set of custom objects:
$mailboxes ...
Read now
Unlock full access