Multiple Linked Mailboxes...
Hello, I have a requirement to setup multiple linked mailboxes in Exchange 2010 and am looking for a script or similar to do it with. I have an Exchange 2010 organisation with 7 sites and 7 servers. In 2 of the sites there are trusted domains on separate networks linked through a firewall and I need to setup linked mailboxes for the users in the trusted domains. I know this can only be done one at a time through the management console, but was wondering if it was possible in the Power Shell en mass? For the sake of the exercise we can say that there are no duplicate usernames between the domains. As this is still in the implimentation phase I am quite flexible with any configuration, although the trusted domains must remain as separate domains, they cannot be merged with the 'master' domain. Many thanks in advance for any help, it is much appreciated. Cheers, Phil.
August 10th, 2010 3:44pm

Hi, Generally, we can set user’s AD attributes using the script below: $user = =[ADSI]LDAP://CN=Ben Pearce,OU=London,DC=umpadom,DC=com $user.psbase.invokeset(‘Title’,’IT PRO’) $user.setinfo() Your script could be modified as below: $reps=Import-CSV "C:\Users\Administrator\Desktop\CreateRecipients.csv" Foreach($rep in $reps) { $user=new-mailbox -alias $rep.alias -name $rep.name -UserPrincipalName $rep.UPN -database "Mailbox Database" -org "newusers" $dn=$user.distinguishedName $user=[ADSI]"LDAP://$dn " $user.psbase.invokeset("physicalDeliveryOfficeName",$rep.physicalDeliveryOfficeName) $user.psbase.invokeset("homePhone",$rep.homePhone) #Add other invokeset() command if necessary …. $user.setinfo() } Also check this link maybe it could help you more. http://www.myexchangeworld.com/2010/02/powershell-provisioning-users/ Regards. Shafaquat Ali. M.C.I.T.P Exchange 2007/2010, M.C.I.T.P Windows Server 2008, M.C.T.S OCS Server 2007 R2, Phone: +923008210320
Free Windows Admin Tool Kit Click here and download it now
August 10th, 2010 4:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics