0 votes

Is there a script we can use to take an OnPrem exchange mailbox and move it to Office365?

Adaxes version
2017.2
3.8.14823.0

Also is this something that is already part of 2018.1?

by (1.3k points)

1 Answer

0 votes
by (294k points)
selected by
Best answer

Hello,

Yes, sure. For details, have a look at section Move mailbox to Office 365 of the following help article: https://www.adaxes.com/help/?HowDoI.Per ... mO365.html.

The same approach can be used in Adaxes 2018.1 and later.

0

That would work but we have 6 different OnPrem exchange servers that have different "mail.company,com" addresses. Is there a way to query which OnPrem server or database they are on 1st and then run the correct mailbox move command based on the result?

0

Hello,

There is no need to query the addresses of your Exchange servers in the script. In the $remoteServer variable, you need to specify the complete domain name of an externally accessible on-premises Exchange server that has the Client Access role configured and the Mailbox Replication Service Proxy (MRSProxy) service running. For more details about the service, have a look at the following article by Microsoft: https://docs.microsoft.com/en-us/exchan ... -2013-help.

0

We have 6 different such addresses depending on which server a user's mailbox is housed on

0

Hello,

Thank you for clarifying.

We have updated the script to meet your needs, find it below. You will not need to specify the name of the local Exchange server, it will be obtained by the script automatically.

# Get exchange server name
$homeDB = $Context.BindToObjectByDN("%homeMDB%")
$msExchOwningServerDN = $homeDB.Get("msExchOwningServer")
$msExchOwningServer = $Context.BindToObjectByDN($msExchOwningServerDN)
$remoteServer = $msExchOwningServer.DirectoryServer

$targetDeliveryDomain = "mycompany.mail.onmicrosoft.com"
$badItemLimit = "0"
$largeItemLimit = "0"
$Context.TargetObject.CreateMoveMailboxToO365Request($remoteServer, $targetDeliveryDomain, $badItemLimit, $largeItemLimit)

Related questions

0 votes
1 answer

Is there a script we can use to take an OnPrem exchange mailbox and move it to Office365? Adaxes version 2017.2 3.8.14823.0 Also is this something that is already part of 2018.1?

asked Mar 12, 2019 by mytamhuyet (50 points)
0 votes
1 answer

I have setup a custom command to move a mailbox from on site to O365 using https://www.adaxes.com/help/?HowDoI.Per ... mO365.html and I'm getting the following error ... deatils OS: Windows server 2008 r2 Exchange: 2013 Adaxes details: 2017.2 3.8.14823.0

asked Jul 1, 2019 by hgletifer (1.3k points)
0 votes
1 answer

Is there a way to export mailboxes to individual PST files 180 days after the account was set to expire? /Kaj

asked Dec 5, 2017 by KajLehtinen (650 points)
0 votes
1 answer

Hello, currently we have an Exchange 2019 Server in Hybrid configuration with Exchange Online. During our user onboarding a mailbox for the user is being created by a ... Remote-Mailboxes in this scenario for newly created AD-Users? Thanks and KR Christian

asked Apr 18 by User0815 (50 points)
0 votes
1 answer

Hi. How can we assign O365 licence to Room mailbox (exemple teams room device)? Activate / modify Office 365 property step is not available on that kind of object. Therefore, ... a custom command to set the licence and do other stuff on that kind of object.

asked Sep 19 by dper (20 points)
3,588 questions
3,277 answers
8,303 comments
548,094 users