I have a list users with alias name in a text file. I want a script which can check which user database the user mailbox is on and depending on that create a archive mailbox for that user. Also apply a retension policy for that user.
Example: User1 is either on maildatabase1 or maildatabase2 need to enable archiving on archivedatabase1 and need to enable retention policy
maildatabase3 or maildatabase4 ->archivedatabase2 and so on