<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Exchange Online Archive - MEB-IT | Blog</title>
	<atom:link href="https://blog.meb-it.de/en/tags/exchange-online/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.meb-it.de/en/tags/exchange-online/</link>
	<description>Networking &#124; Security &#124; Cloud</description>
	<lastBuildDate>Sun, 25 Jul 2021 11:55:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>Move a M365 Mailbox to another database server</title>
		<link>https://blog.meb-it.de/en/move-a-m365-mailbox-to-another-database-server/</link>
					<comments>https://blog.meb-it.de/en/move-a-m365-mailbox-to-another-database-server/#respond</comments>
		
		<dc:creator><![CDATA[Marcel]]></dc:creator>
		<pubDate>Sat, 24 Jul 2021 11:38:58 +0000</pubDate>
				<category><![CDATA[Office365]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[M365]]></category>
		<category><![CDATA[Microsoft365]]></category>
		<category><![CDATA[O365]]></category>
		<guid isPermaLink="false">https://blog.meb-it.de/?p=16</guid>

					<description><![CDATA[<p>If you need to move a specific mailbox in Microsoft 365 to a different database server, Powershell is your friend. Open a Powershell session and connect to your Microsoft 365 tenant. If you dont know how to connect to M365 via Powershell, check out the last paragraph in this article: Powershell on Linux First we [&#8230;]</p>
<p>Der Beitrag <a href="https://blog.meb-it.de/en/move-a-m365-mailbox-to-another-database-server/">Move a M365 Mailbox to another database server</a> erschien zuerst auf <a href="https://blog.meb-it.de/en">MEB-IT | Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you need to move a specific mailbox in Microsoft 365 to a different database server, Powershell is your friend. Open a Powershell session and connect to your Microsoft 365 tenant. If you dont know how to connect to M365 via Powershell, check out the last paragraph in this article: <a href="https://blog.meb-it.de/powershell-on-linux/">Powershell on Linux</a></p>



<p>First we should check the actual database server the mailbox is located on:</p>



<pre class="wp-block-code"><code>Get-MailboxLocation -Identity user@domain.com</code></pre>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="551" src="https://blog.meb-it.de/wp-content/uploads/2021/07/01-getmailboxlocation-1024x551.png" alt="" class="wp-image-17" srcset="https://blog.meb-it.de/wp-content/uploads/2021/07/01-getmailboxlocation-1024x551.png 1024w, https://blog.meb-it.de/wp-content/uploads/2021/07/01-getmailboxlocation-300x161.png 300w, https://blog.meb-it.de/wp-content/uploads/2021/07/01-getmailboxlocation-768x413.png 768w, https://blog.meb-it.de/wp-content/uploads/2021/07/01-getmailboxlocation.png 1140w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>cmdlet Get-MailboxLocation</figcaption></figure>



<p>As you can see in the above image, the field &#8220;DatabaseLocation&#8221; shows the hostname of our database server. We are now going to set up a move request for this mailbox. In Microsoft 365 / Exchange Online we are not able to chose the desired server we want to move our mailbox to. Microsoft will move the mailbox to a random, different server:</p>



<pre class="wp-block-code"><code>New-MoveRequest -Identity user@domain.com</code></pre>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="205" src="https://blog.meb-it.de/wp-content/uploads/2021/07/02-newmoverequest-1024x205.png" alt="" class="wp-image-18" srcset="https://blog.meb-it.de/wp-content/uploads/2021/07/02-newmoverequest-1024x205.png 1024w, https://blog.meb-it.de/wp-content/uploads/2021/07/02-newmoverequest-300x60.png 300w, https://blog.meb-it.de/wp-content/uploads/2021/07/02-newmoverequest-768x154.png 768w, https://blog.meb-it.de/wp-content/uploads/2021/07/02-newmoverequest.png 1129w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>cmdlet New-MoveRequest</figcaption></figure>



<p>Once we created the move request we need to wait for the moving provess to finish. We are able to check the status with the following command:</p>



<pre class="wp-block-code"><code>Get-MoveRequestStatistics -Identity user@domain.com</code></pre>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="191" src="https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-01-1-1024x191.png" alt="" class="wp-image-20" srcset="https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-01-1-1024x191.png 1024w, https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-01-1-300x56.png 300w, https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-01-1-768x143.png 768w, https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-01-1.png 1131w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>cmdlet Get-MoveRequestStatistics, status CreatingFolderHierarchy</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="169" src="https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-02-1024x169.png" alt="" class="wp-image-21" srcset="https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-02-1024x169.png 1024w, https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-02-300x50.png 300w, https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-02-768x127.png 768w, https://blog.meb-it.de/wp-content/uploads/2021/07/03-getmoverequeststatistics-02.png 1127w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>cmdlet Get-MoveRequestStatistics, status CopyingMessages</figcaption></figure>
</div></div>



<p>It took this 18GB mailbox  about1.5 hours to finish. That depends most likely on the usage of source and destination server. After this operation has finished the user should restart their Outlook.</p>
<p>Der Beitrag <a href="https://blog.meb-it.de/en/move-a-m365-mailbox-to-another-database-server/">Move a M365 Mailbox to another database server</a> erschien zuerst auf <a href="https://blog.meb-it.de/en">MEB-IT | Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.meb-it.de/en/move-a-m365-mailbox-to-another-database-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Powershell on Linux</title>
		<link>https://blog.meb-it.de/en/powershell-on-linux/</link>
					<comments>https://blog.meb-it.de/en/powershell-on-linux/#comments</comments>
		
		<dc:creator><![CDATA[Marcel]]></dc:creator>
		<pubDate>Mon, 19 Jul 2021 14:44:27 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Office365]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[M365]]></category>
		<category><![CDATA[Microsoft365]]></category>
		<category><![CDATA[O365]]></category>
		<guid isPermaLink="false">https://blog.meb-it.de/?p=10</guid>

					<description><![CDATA[<p>Did you know Powershell is available for Linux too? Sometimes you need the Windows Powershell features available on your Linux machine, e.g. for M365, Exchange Online or Azure AD administration. Powershell can be easily installed but not all features are available. Linux derivates officially supported for Powershell 7.1: Ubuntu 16.04/18.04/20.04 Ubuntu 19.10 (via snap-packages) Debian [&#8230;]</p>
<p>Der Beitrag <a href="https://blog.meb-it.de/en/powershell-on-linux/">Powershell on Linux</a> erschien zuerst auf <a href="https://blog.meb-it.de/en">MEB-IT | Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Did you know Powershell is available for Linux too? Sometimes you need the Windows Powershell features available on your Linux machine, e.g. for M365, Exchange Online or Azure AD administration. Powershell can be easily installed but not all features are available.</p>



<p>Linux derivates officially supported for Powershell 7.1:</p>



<ul class="wp-block-list"><li>Ubuntu 16.04/18.04/20.04 </li><li>Ubuntu 19.10 (via snap-packages)</li><li>Debian 9/10</li><li>CentOS/RHEL 7/8</li><li>Fedora 30</li><li>Alpine (from 3.11)</li></ul>



<h2 class="wp-block-heading">Installation example (Ubuntu 20.04)</h2>



<p>You can directly install Powershell via repository:</p>



<pre class="wp-block-code"><code># Update the list of packages
sudo apt-get update
# Install pre-requisite packages.
sudo apt-get install -y wget apt-transport-https software-properties-common
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
# Enable the "universe" repositories
sudo add-apt-repository universe
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh</code></pre>



<h2 class="wp-block-heading">Connect to Office 365 Powershell</h2>



<p>After Powershell has been installed, it&#8217;s very easy to connect to Office 365. Open the Powershell terminal and type the following (First step will ask for O365 admin credentials)</p>



<pre class="wp-block-code"><code>$O365Credential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $O365Credential -Authentication Basic -AllowRedirection

Import-PSSession -Session $Session</code></pre>



<p>The last step takes a few seconds until the Office 365 session has been imported. Afterwards you can run the available Powershell cmdlets.</p>
<p>Der Beitrag <a href="https://blog.meb-it.de/en/powershell-on-linux/">Powershell on Linux</a> erschien zuerst auf <a href="https://blog.meb-it.de/en">MEB-IT | Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.meb-it.de/en/powershell-on-linux/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
