Created
January 14, 2019 20:05
-
-
Save lidopaglia/274857e2e9331463eb52aacdbde05292 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Given the value from "msExchRecipientDisplayType" attribute | |
#in active directory will translate to the MailboxType | |
# https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_exchon-mso_o365b/recipient-type-values/7c2620e5-9870-48ba-b5c2-7772c739c651 | |
function Get-MailboxType ($DisplayType){ | |
switch ($DisplayType) { | |
-2147483642 {"RemoteUserMailbox"} | |
-2147481850 {"RemoteRoomMailbox"} | |
-2147481594 {"RemoteEquipmentMailbox"} | |
0 {"UserMailbox (shared)"} | |
1 {"MailUniversalDistributionGroup"} | |
6 {"MailContact"} | |
7 {"UserMailbox (room)"} | |
8 {"UserMailbox (equipment)"} | |
1073741824 {"UserMailbox"} | |
1073741833 {"MailUniversalSecurityGroup"} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment