Solved

Exchange 2007 add external account with powershell

Posted on 2011-09-21
5
732 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Brando Peter
ID: 36572760
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
ID: 36572896
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
ID: 36573320
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:
Praveen Balan earned 125 total points
ID: 36573707
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
ID: 36585417
last option works praveen
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
when apply search old messages are not showing up in office 365 4 59
Exchange 2010 > 2016 mail flow 2 68
CAL for Disabled accounts 4 57
Office 365 adding a domain 3 36
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create an email address policy 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 Mail Flow…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

751 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