diff --git a/Exchange/Get-MailboxesPerType.ps1 b/Exchange/Get-MailboxesPerType.ps1 new file mode 100644 index 0000000..725ae11 --- /dev/null +++ b/Exchange/Get-MailboxesPerType.ps1 @@ -0,0 +1,5 @@ +# Haal alle mailboxen op +$mailboxes = Get-Recipient -RecipientTypeDetails UserMailbox, SharedMailbox, RoomMailbox, EquipmentMailbox, RemoteUserMailbox, RemoteSharedMailbox -ResultSize Unlimited + +# Groepeer en tel per type +$mailboxes | Group-Object RecipientTypeDetails | Select-Object Name, Count