AB
но в общем случае get-aduser | measure-object -property
Size: a a a
AB
AB
AB
AB
EV
J
Get-Mailbox | select @{l='dep';e={(get-aduser $_.guid -Properties department).department}} | group dep
J
MS
O
Get-Mailbox | select @{l='dep';e={(get-aduser $_.guid -Properties department).department}} | group dep
O
J
MO
J
O
MO
O
MO
J