locked
BKP RRS feed

  • Question

  • Hello,

    I have open a thread few days ago about an error I have made. I have deactivated 1000 accounts (Get-mailuser) that I have recreated straight ahead! However I have lost the smtp email addresses (we have few accetped domains and remove policy).

    Anyway, I would like to know if they would have had any way to do roll back? WOuld it be possible to backup and restore the database? How would that work? How often backup should be done ? (scheduled?)

    Thanks,

    Graig

    Friday, June 3, 2011 9:44 AM

Answers

  • 1. I dont believe this will be possible for an exch point of view.  The database wont hold the smtp addresses, this is in AD.

    2. If you havent got a recent export then you cant do much.

    3. You can maybe setup a test-lab (isoloated) restore your AD then export smtp addresses to CSV then use that and import into your live env.


    Sukh
    • Proposed as answer by Alan.Gim Tuesday, June 7, 2011 2:37 AM
    • Marked as answer by Alan.Gim Wednesday, June 15, 2011 9:53 AM
    Friday, June 3, 2011 11:05 AM
  • The database backup won't help, the settings are stored in AD for the user accounts. When you "deactivated" their accounts, you basically de-provisioned their AD account which removes the Exchange related attributes including the proxyaddresses.

    In order to get these back you will need to perform an AD restore of the user accounts. If your backup software has capability to do a single user restore, test it out with a single test account to verfiy.


    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
    • Proposed as answer by Alan.Gim Friday, June 10, 2011 6:27 AM
    • Marked as answer by Alan.Gim Wednesday, June 15, 2011 2:48 AM
    Wednesday, June 8, 2011 4:46 PM

All replies

  • 1. I dont believe this will be possible for an exch point of view.  The database wont hold the smtp addresses, this is in AD.

    2. If you havent got a recent export then you cant do much.

    3. You can maybe setup a test-lab (isoloated) restore your AD then export smtp addresses to CSV then use that and import into your live env.


    Sukh
    • Proposed as answer by Alan.Gim Tuesday, June 7, 2011 2:37 AM
    • Marked as answer by Alan.Gim Wednesday, June 15, 2011 9:53 AM
    Friday, June 3, 2011 11:05 AM
  • Can you try re-applying your Email Address Policies, by opening up each one, running through the "Next, Next, Finish" process and telling it to apply immediately?
    dave
    Friday, June 3, 2011 5:24 PM
  • Hi,

    I think best way to backup settings is to use "Start-Transcript" cmdlet and use Get-MailUser | select * These simple commands will drop all properties to a text file for future use. Then Stop-Transcript when done, or you can use CSV:

    $a=@()

    $a +=get-mailuser -resultsize unlimited | select *

    $a | select alias,emailaddresses -expandproperty emailaddresses | export-csv <path + filename> -encoding unicode

     

    with regard

     


    Zbyněk
    Friday, June 3, 2011 9:01 PM
  • How's the issue currently? Any further information?
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Monday, June 6, 2011 5:39 AM
  • Hi guys, sorry for late reply!

    I was pretty busy handling issues that came up afterwards.. 

    @Sukh:  "If you havent got a recent export then you cant do much." How should I proceed to do an export?

    @ Dave; prior Email Address Policies have been deleted I cannot re-apply those :-S

     @ Zbyněk: Good idea but I thought about a point of restore that would allow be to do a roll back in case something would go wrong user deactivated, distribution group, Exchange server badly configured or whatever... something that would save me ;-) not as last time.

    @ James-Luo: same same. If I would know how to backup the configuration and users profile I would be more at ease and would point that out to my mangers who aren't happy about what happened (my bad..).

     

    Thanks to all,

    Graig

    Tuesday, June 7, 2011 6:58 AM
  • Hi Graiggoriz,

    Transcript dumps all the user settings to text file and those you can use later on. If you disable-mailuser, it just removes Exchange properties of that user, but does not remove AD object, so you cac still Enable-MailUser if something goes wrong:

    1. Enable-Mailuser
    2. Use your settings to Set-MailUser: http://technet.microsoft.com/en-us/library/aa995971.aspx

    Regards

     


    Zbyněk
    Tuesday, June 7, 2011 8:13 AM
  • Thanks Zbyněk I already did an extrat from EMC of all mailboxes mailusers and distribution groups (OU, primary external email address and emailaddresses).

     

    I would be interested in knowing how to backup the Exchnage 2007 database? I mean is there anything to do to get a point of retore in case of wrong manipulation or else??

     

    Thanks,

    Graig

    Wednesday, June 8, 2011 6:16 AM
  • The database backup won't help, the settings are stored in AD for the user accounts. When you "deactivated" their accounts, you basically de-provisioned their AD account which removes the Exchange related attributes including the proxyaddresses.

    In order to get these back you will need to perform an AD restore of the user accounts. If your backup software has capability to do a single user restore, test it out with a single test account to verfiy.


    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
    • Proposed as answer by Alan.Gim Friday, June 10, 2011 6:27 AM
    • Marked as answer by Alan.Gim Wednesday, June 15, 2011 2:48 AM
    Wednesday, June 8, 2011 4:46 PM
  • @James-Luo - I thought my post mentioned that :-)


    Sukh
    Wednesday, June 15, 2011 9:05 AM