July 2017
Intermediate to advanced
648 pages
31h 9m
English
In our first example, you can see that we've used the Get-Mailbox cmdlet to retrieve only the users that have the Office property set to the value Sales. This is more efficient than performing the following command, which would return the same results:
Get-Mailbox | ?{$_.Office -eq 'Sales'}
This command uses the Where-Object cmdlet (using the ? alias) to retrieve only the mailboxes with their Office property set to Sales. We get back the same results, but it is less efficient than our original example. When filtering with Where-Object, every mailbox in the organization must be retrieved and evaluated before any results are returned. The benefit of using the -Filter parameter with the Get-Mailbox cmdlet is that the filtering ...
Read now
Unlock full access