How to clear SIDHistory and keep mailbox permissions

The SIDHistory attribute of a user object is used to store old SIDs for that user (usually SIDs from other domains when the user is migrated).  In some cases, over time, this attribute can hold lots of values (every time a user is migrated, the previous SID is added to the list), and we sometimes…


PowerShell: Clean Mailbox Delegates (update)

I wrote a script a while ago that can remove invalid delegates from a mailbox using a mixture of EWS and Exchange PowerShell.  The limitation of the original script is that is didn’t do anything about the hidden rules that forward messages to delegates, which means that the unexpected NDR issue (as described here) would…

2

PowerShell: Clean AD Users’ ACL

While this isn’t strictly Messaging Development, this script is loosely related to a previous script that validates mailbox delegate permissions (by removing references to non-existent accounts).  The same issue that applies to delegates applies to users.  If a user has certain permissions on another account, those permissions are not removed from the account when the…

0