One thing I get asked for on a regular basis particularly by admin staff is how many users we have for a specific customer on our Hosted Exchange Environment. This is important for billing purposes
Now there are quite a few options to do this. For example we can collate a list of users with in a particular Organisational Unit in Active Directory . We can have what ever output we want to a CSV or the terminal itself
A Quick and easy way is, for us we have the Custom Attribute 1 for a Mailbox set to a customer as this will tie in with their Address Book Policy, GAL etc. So we can execute the following command
Get-Mailbox -RecipientType 'UserMailbox' -Filter '((CustomAttribute1 -eq ''COMPANY''))'
The variable ‘COMPANY’ will need to be substituted with the value you are concerned with for Custom Attribute1