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 (233k 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

Hi, based on this article How to create Resource Mailboxes a few slide modifications aside we are currently creating resource and equipment mailboxes in our on-premise environment. ... to O365. Does this work at all? Appreciate your input. Kind Regards Ingemar

asked Oct 26, 2016 by ijacob (960 points)
0 votes
1 answer

Hello, I couldn't get my head arround on making a condition "when mailbox is on Premise" to migrate it to the cloud. Looking at account details Adaxes shows either a ... database or "Office 365" in mailbox location field. Can I query that somehow? Powershell?

asked Mar 26, 2018 by DLe (760 points)
2,880 questions
2,600 answers
6,750 comments
114,575 users