Solved

Exchange Management Shell Office365

Posted on 2016-09-01
7
53 Views
Last Modified: 2016-09-01
I´m running Exchange 2016 server OnPremises, and using Office365 in a Hybrid enviroment. I use the Exchange Management Shell to move users from my Exchange Server to Office365, connecting to Office365, using Remote Move Request. My question is:
 
Can I move all the mailboxes in a Database on my Onpremises exchange server to office365 with a Remote Move Request from the Management shell connected to Office365 ?

Regards,
Siggi
0
Comment
[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
7 Comments
 
LVL 16

Expert Comment

by:Shaik M. Sajid
ID: 41779610
1
 
LVL 25

Expert Comment

by:-MAS
ID: 41779613
Hi,
If you are not familiar with O365 PS I suggest you to use Office365 portal to move the users from onprem to O365.
Create migration end point
https://technet.microsoft.com/en-us/library/jj874458(v=exchg.150).aspx
Move users
https://technet.microsoft.com/en-us/library/o365e_hrcmoverequest_fl312271(v=exchg.150).aspx
You can select multiple users in a batch.

Thanks
MAS
0
 

Author Comment

by:Sigurdur Kristofersson
ID: 41779659
Hi guys, and thank you for your answers.
I may have worded my question wrong, english is not my native language.

I do not want to use the portal, I want to learn how to do it in Powershell.
I´m already connected to Office365 with powershell and I can remotely move individual mailboxes from my onprem to office365 by using the -Identity parameter.
What I need to know is: Can I remotely use something like Get-Mailbox -Database <Name of Onprem database> and pipe it to -NewRemoteRequest ?
Or do I need to connect to the onprem exchange server in a separte powershell window  and do it from there ?
Thanks for your patience.
Regards,
Siggi
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 25

Expert Comment

by:-MAS
ID: 41779700
Hi Siggi,
You can install Msoidclient in any PC in your network.
https://www.microsoft.com/en-us/download/details.aspx?id=28177

If you want to move in bulk export the email address from the database to CSV and move to O365.
Detailed steps here
https://technet.microsoft.com/library/mt130479.aspx
0
 

Author Comment

by:Sigurdur Kristofersson
ID: 41779758
Hi.
I think I have erverything I need innstalled on my computer  ( I have the MSOidclient installed ).
I´m just checking if it is possible to move ALL the mailboxes from an Onprem database ( Get-Mailbox -Database "OnPremdatabaseName" and pipe it to a Remote-Move command from my already open remote Powershell connection window, no CSV file, just get all the mailboxes in an  Onprem database and move them to the Office365 cloud.
Does anyone hava a one line command for that if possible at all ?

Maybe it´s just not possible, I only wanted to know :-)
Regards,
Siggi
0
 
LVL 12

Accepted Solution

by:
Ajit (Kevin k) earned 500 total points
ID: 41779770
New-MoveRequest

New-MoveRequest -Remote -RemoteHostName 'domain.com' -RemoteCredential $cred -TargetDeliveryDomain 'domain.mail.onmicrosoft.com'

Open in new window


Have in mind that mailbox moves are performed to the 'TargetDelivery' domain, i.e. the domain.mail.onmicrosoft.com one. Administrators are instructed to use the Exchange Admin Center (EAC) or Exchange Management Shell (EMS) for any Exchange Online management scenarios." Therefore, to have a better experience with the mailbox move request, we suggest you create the batch in EAC (Exchange Admin Center) of Office 365/Exchange Online and monitor the move request there.

Move mailboxes between on-premises and Exchange Online organizations in hybrid deployments:
https://technet.microsoft.com/en-IN/library/o365e_hrcmoverequest_fl312271%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396
1
 

Author Closing Comment

by:Sigurdur Kristofersson
ID: 41779780
Thank you, that was what I wanted to get me on my way.
Regards,
Siggi
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

734 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