Solved

Exchange 2007 add external account with powershell

Posted on 2011-09-21
5
722 Views
Last Modified: 2012-05-12
hello,

i want to add a external account to a mailbox, in exchnage 2003 you can open the account end simply add a account and place external account to it. the you have a linked mailbox.

but this is not possibly on a exchange 2007 sp3 machine. I understand that now you have to do it with powershell.

can someone give met the correct commanline to do this. the external account must have fulll control on the mailbox.
0
Comment
Question by:Mr-Black
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Brando Peter
Comment Utility
Here you go:

C:\>$credential = Get-Credential

Fill in the dialog box with the Account Forest credentials

C:\>New-mailbox –Name user1 -Alias user1 -OrganizationalUnit OU1 -UserPrincipalName user1@resource.forest.domain –Database db1 -LinkedMasterAccount externalforest\user1 -LinkedDomainController dc1.externalforest.com -LinkCredential $credential

0
 

Author Comment

by:Mr-Black
Comment Utility
And what will it be to link a external acocunt to a existing mailbox.
0
 
LVL 5

Assisted Solution

by:Brando Peter
Brando Peter earned 125 total points
Comment Utility
If that mailbox is still enabled:
Disable-Mailbox -Identity User1
$cred = Get-Credential
Connect-Mailbox -Identity User1 -Database db1 -LinkedDomainController dc1.externalforest.com -LinkedMasterAccount externalforest\user1 -linkeddomaincontroller dc1.externalforest.com -LinkedCredential $cred

If the mailbox has already been disabled/disconnected just run the connect-mailbox command
0
 
LVL 7

Accepted Solution

by:
PraveenBalan earned 125 total points
Comment Utility
If you want to create Linked mailbox, you may also use exchange 2007 EMC(Management Console).
In Recipient Management, start the new mailbox wizard and then select the Linked Mailbox option and follow the wizard with necessary inputs.

If you are comfortable with the command line(Power Shell), you may proceed with the answer above.

the process is really simple and straight forward, but you need to ensure that the required trust relationship exists with both forest(Account and Resource).

ref - http://technet.microsoft.com/en-us/library/bb123524.aspx

if you want to link to existing mailbox, you will have to disable the source account, disable mailbox and then connect it to external account.
    Disabled the user account in source forest (Use ADUC)
    Disable the user mailbox(Disable-Mailbox cmdlet)
    Run the Clean-MailboxDatabase against the DB to quickly show the diconnected mailboxes in EMC
    Connect the mailbox as Linked Mailbox.
-Praveen




-Praveen
0
 

Author Closing Comment

by:Mr-Black
Comment Utility
last option works praveen
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now