Quantcast
Viewing all articles
Browse latest Browse all 19214

Powershell mailboxes per database and customattribute report

Hi,

I am trying to create a powershell report but I am not getting is all together maybe someone can help. 

On my Exchange environment we have made differences by using CustomAttribute1, the mailboxes are spread over multiple Mailbox Databases. What I would like to know is per different CustomAttribute1 how many mailboxes there are on each Mailbox Database.

When I run this command:

$databases = Get-MailboxDatabase | select-object Name
foreach($database in $databases)
{
get-mailbox -Database $database.name | Group-Object -Property:CustomAttribute1 | Select-object Name,Count
} 

I get the information CustomAttribute1 and Count but it I do not get the Mailbox database name attached.


Regards Ronny
-------------
Visit my Blog or follow me on Twitter


Viewing all articles
Browse latest Browse all 19214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>