I have Exchange 2010 Setup and having 20000+ exchange mailbox - TopicsExpress



          

I have Exchange 2010 Setup and having 20000+ exchange mailbox users. We received list from HR team to deactivate certain email IDs on their resignation or retired.The list contain 50 to 200 mailbox users per month. I do prefer power shell script to deactivate all users via CSV file.We do not delete AD account only disable AD account. But certain below task I am expecting to do via script but unable to find till now. 1. How do I confirm which users are belongs to which exchange Group IDs (member of) and looking for script to run via csv file to remove members of exchange Group IDs except default (Domain Users) as below. It is tedious task to manually go to AD and check each AD user account and remove from member of (group IDs) 2. We set OOF message for every deactivate users via csv file, but when I run below command it applied to few email IDs and not applied to few email IDs. No error occurred when command completed in EMC. which is again manual task to check if OOF is set or not ? csv file is contain only one row of email ID e.g [email protected] ============================================================ ================================================================================================================================= $SourceFile = c:\abc\ooo.csv $UserList = Get-Content $SourceFile foreach ($User in $Userlist) { Set-MailboxAutoReplyConfiguration $User -AutoReplyState Enabled -InternalMessage ATTENTION: Thank you for your message. The email address that you tried to reach is not active at present as the employee holding this email address is no longer a part of The xxxxxxxx Company Limited due to superannuation or some other such reasons. For any queries you may contact the relevant office. This is a system generated mail. Please do not reply to this mail. -ExternalMessage ATTENTION: Thank you for your message. The email address that you tried to reach is not active at present as the employee holding this email address is no longer a part of The xxxxxxxxxxxxx Company Limited due to superannuation or some other such reasons. For any queries you may contact the relevant office. This is a system generated mail. Please do not reply to this mail. } ============================================================================================================================================================================================== If anyone has any suggestion please reply.
Posted on: Sun, 24 Aug 2014 14:34:26 +0000

Trending Topics



Recently Viewed Topics




© 2015