We have Exchange information storages that start with UsersA-B, UsersC-D, etc., and then some of them are not included in this naming convention.
$allIS = Get-MailboxDatabase | Where { $_.name -notlike "*Users*" } | Select Identity
I will look at the current user information store, and then try to make a comparison with the $ allIS array. If appropriate, do some action.
For example, outputting the value $ allIS [0] returns @{Identity=MSCCR\CEO\CEO}
.
I would like to throw these converted strings into another array and then do a comparison. This will have a dynamic list of information stores for comparison. But perhaps this is not the best and most effective way. What is the best way to try to make this comparison, since now I am comparing apples to oranges here?
source share