Resolution
How do I automatically create new Exchange mailboxes for user accounts as they are migrated?
goal
How do I use a script to create Exchange mailboxes?
fact
Domain Migration Administrator 6.x
fact
Domain Migration Administrator 7.x
fix
DMA can run a post-process script that creates new mailboxes. You can obtain this script from Microsoft and modify it for your environment.
The following Microsoft Knowledge Base article contains a sample VBscript that creates an Exchange 2000 or Exchange 2003 mailbox for an existing user: Microsoft Knowledge Base article 327079, How to programmatically create a mailbox for an existing user in the Active Directory by using CDOEXM,
http://support.microsoft.com/default.aspx?scid=kb;en-us;327079&Product=exch2003.
To create new mailboxes:
- Obtain the script from Microsoft Knowledge Base article 327079.
- Using a text editor, open the script and locate the following line:
- Replace the line identified in the previous step with the following text:
- Save and close the script.
- In DMA, run the script.
Set oIADSUser = GetObject("LDAP://CN=UserName,CN=Users," & strDefaultNC)
Set oIADSUser = targetObject