
Get-Member will list all of the properties of an object to help you learn what you can and can’t do with them. But how do we know which properties a mailbox object has, so that we can perform that filtering or apply changes to those settings?Īgain PowerShell gives us the answer thanks to the Get-Member cmdlet. In the previous examples we looked at filtering mailboxes using the “Office” attribute, and setting the values for mailbox storage quota attributes. In the example of a mailbox object these include properties such as the name of the database the mailbox resides on, the mailbox storage quota values, or the office location for the mailbox user. In Exchange Server 2010 an object could be a mailbox, a distribution group, a database, or one of many other things.Īn object has properties. If you don’t know what that means then don’t worry, I was using PowerShell for almost two years before I began to understand what it meant.Īn “object” is simply a collection of data. PowerShell is an object-oriented language. Name Alias ServerName ProhibitSendQuota - Alex. You can use the same command shown above to get the branch office mailboxes, and then pipe that into the Set-Mailbox cmdlet to make the change to their storage quota settings. Continuing the previous example, let’s say that the business has decided that all branch office mailbox users should have a 3Gb mailbox storage quota. That is an example of the pipeline in action. You may have noticed in the previous example the | (or pipe) character that was between the Get-Mailbox and Where-Object cmdlets. In PowerShell the pipeline is how output from one command is passed to another.


One of the PowerShell techniques you will use regularly is the pipeline. Fyson br-ex2010-mb unlimitedĪs you can see by filtering the output of Get-Mailbox to only those where the “Office” attribute equals “Branch Office”, you can retrieve only the data that you are interested in seeing. Rodrigues br-ex2010-mb unlimited Katherine. PS > Get-Mailbox | Where-Object Name Alias ServerName ProhibitSendQuota - Alex.
