Powershell for Mailbox Statics and applying storage quota by Office
1. Is there a powershell to get the information of each mailbox by office location and export it to a csv with Name, Office, mailbox size in mb?
2. Set quota: Issue warning, Prohibitsend by Office
to filter the results of mailboxes by office the command is
Get-Mailbox -Filter { Office -eq "Valencia" } | select name,office, *quota | sort name | export-csv export.csv
endital1097
also you cannot use * with the select statement, it only works with format-list and format-table
This powershell works great getting the mailbox information for the office:
Get-Mailbox -Filter { Office -eq "Mission Plaza" } | select name,office, *quota | sort name | export-csv export.csv
Now I want to implement the Quota size for this office. I got an error when running this powershell:
Take a look here for the rest...
http://www.simple-talk.com/sysadmin/powershell/managing-exchange-2007-mailbox-quotas-with-windows-powershell/
Hope this helps~!