<?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>Microsoft 365 | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/microsoft-365/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Fri, 14 Mar 2025 21:38:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>Microsoft 365 | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>Managing Microsoft Licenses in PowerShell and Microsoft Graph</title>
		<link>https://www.kjctech.net/manage-microsoft-licenses-in-powershell-and-microsoft-graph/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=manage-microsoft-licenses-in-powershell-and-microsoft-graph</link>
					<comments>https://www.kjctech.net/manage-microsoft-licenses-in-powershell-and-microsoft-graph/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Fri, 14 Mar 2025 20:05:11 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Microsoft Graph]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=5204</guid>

					<description><![CDATA[<p>Most of the time, I manage the licensing part of Microsoft 365 manually, but from time to time, using PowerShell can be easy and clean. To view account license and service details First, connect to Microsoft Graph. Connect-Graph To list all license plans you purchased with part number and ID, Get-MgSubscribedSku &#124; Select-Object SkuPartNumber, SkuID To list the services that [&#8230;]</p>
The post <a href="https://www.kjctech.net/manage-microsoft-licenses-in-powershell-and-microsoft-graph/">Managing Microsoft Licenses in PowerShell and Microsoft Graph</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>Most of the time, I manage the licensing part of Microsoft 365 manually, but from time to time, using PowerShell can be easy and clean.</p>



<h3 class="wp-block-heading">To view account license and service details</h3>



<p>First, connect to Microsoft Graph.</p>



<pre class="wp-block-preformatted">Connect-Graph</pre>



<p>To list all license plans you purchased with part number and ID,</p>



<pre class="wp-block-preformatted">Get-MgSubscribedSku | Select-Object SkuPartNumber, SkuID</pre>



<p>To list the services that are available in each license plan,</p>



<pre class="wp-block-code"><code lang="powershell" class="language-powershell">$allSKUs = Get-MgSubscribedSku
$allSKUs | ForEach-Object {
  "Service Plan: " + $_.SkuPartNumber
  $_.ServicePlans | Select-Object ServicePlanName, ServicePlanID
}</code></pre>



<p>To list all license plans assigned to a specific user,</p>



<pre class="wp-block-preformatted">Get-MgUserLicenseDetail -UserID $userID</pre>



<p>To list all services from all assigned license plans for a specific user,</p>



<pre class="wp-block-preformatted">(Get-MgUserLicenseDetail -UserID $userID -Property ServicePlans).ServicePlans</pre>



<p>Service plans can be quite messy if you manage them manually so using PowerShell could save a lot of time and could make things a lot easier.</p>



<h3 class="wp-block-heading">To assign or remove a license plan from a user account</h3>



<p>Now you need to sign in to Microsoft Graph with some extra permission scope.</p>



<pre class="wp-block-preformatted">Connect-MgGraph -Scopes User.ReadWrite.All</pre>



<p>You will also need to make sure the <strong><em>UsageLocation</em></strong> is set for the user before assigning any license plans, e.g. US for the United States and CA for Canada, etc. To find out all the accounts in your tenant that don&#8217;t have a <strong><em>UsageLocation</em></strong> value, run the command below.</p>



<pre class="wp-block-preformatted">Get-MgUser -Select Id,DisplayName,Mail,UserPrincipalName,UsageLocation,UserType | where { $_.UsageLocation -eq $null -and $_.UserType -eq 'Member' }</pre>



<p>To assign a license plan to a specific user,</p>



<pre class="wp-block-preformatted">Set-MgUserLicense  -UserID $userID -AddLicenses @{SkuID = $skuID} -RemoveLicenses @()</pre>



<p>You can retrieve the license SKUID like this, where $partNumber is the name of the license plan, such as SPB for Business Premium, etc.</p>



<pre class="wp-block-preformatted">$skuID = (Get-MgSubscribedSku -All | Where-Object SkuPartNumber -eq $partNumber).SkuID</pre>



<p>To remove a license plan from a specific user,</p>



<pre class="wp-block-preformatted">Set-MgUser-License -UserID $userID -RemoveLicenses @($skuID) -AddLicenses @()</pre>



<p>To remove all license plans from a specific user,</p>



<pre class="wp-block-preformatted">Get-MgUserLicenseDetail -UserId $userID | ForEach-Object {Set-MgUserLicense -Userid $userID -RemoveLicenses @($_.skuid) -AddLicenses @()}</pre>



<h4 class="wp-block-heading">References:</h4>



<ul class="wp-block-list">
<li><a href="https://learn.microsoft.com/en-us/microsoft-365/enterprise/view-licenses-and-services-with-microsoft-365-powershell?view=o365-worldwide">View Microsoft 365 Licenses and Services with PowerShell</a></li>
</ul>



<p></p>The post <a href="https://www.kjctech.net/manage-microsoft-licenses-in-powershell-and-microsoft-graph/">Managing Microsoft Licenses in PowerShell and Microsoft Graph</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/manage-microsoft-licenses-in-powershell-and-microsoft-graph/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5204</post-id>	</item>
		<item>
		<title>M365 &#8211; How To Stop SPF-Failed Emails From Passing Through</title>
		<link>https://www.kjctech.net/m365-how-to-stop-spf-failed-emails-from-passing-through/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=m365-how-to-stop-spf-failed-emails-from-passing-through</link>
					<comments>https://www.kjctech.net/m365-how-to-stop-spf-failed-emails-from-passing-through/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Thu, 25 May 2023 06:09:11 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[email security]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=5076</guid>

					<description><![CDATA[<p>By default, SPF-failed emails will still get delivered in Microsoft 365. To its credit, they do most likely end up in the Junks folder. I understand the reason behind it because even in 2023, there are still many mail servers that aren&#8217;t configured correctly. But the fact that an SPF-failed email passes through still bothers me. To stop it, you [&#8230;]</p>
The post <a href="https://www.kjctech.net/m365-how-to-stop-spf-failed-emails-from-passing-through/">M365 – How To Stop SPF-Failed Emails From Passing Through</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>By default, SPF-failed emails will still get delivered in Microsoft 365. To its credit, they do most likely end up in the Junks folder. I understand the reason behind it because even in 2023, there are still many mail servers that aren&#8217;t configured correctly. But the fact that an SPF-failed email passes through still bothers me.</p>



<p>To stop it, you will need to add a Transport Rule that catches them via a matching message header. However, since SPF is only one of the authentication methods for email security. There are also DKIM and DMARC to consider as well.</p>



<p>Exchange Online runs authentication tests and puts the results in a header called &#8220;<strong><em>Authentication-Results</em></strong><em>&#8220;</em>, in the form of something like this:</p>



<pre class="wp-block-preformatted">Authentication-Results: spf=pass; dkim=pass; dmarc=pass; compauth=pass</pre>



<p>The field <strong>compauth</strong> is a very interesting one. According to <a href="https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/message-headers-eop-mdo?view=o365-worldwide" target="_blank" rel="noopener" title="">Anti-spam message headers in Microsoft 365</a>, it&#8217;s used by Microsoft 365 to combine multiple types of authentication or any other part of the message to determine whether or not the message is authenticated.</p>



<p>It would be perfect for my case. If any message&#8217;s Authentication-Results header contains compauth=fail, I am happy to drop it. However, the Transport Rule doesn&#8217;t take that part and for whatever reason, it just wouldn&#8217;t match. What a bummer.</p>



<p>So, naturally, my next bet would be to use DMARC. Here is how it goes.</p>



<p>Head over to the Exchange Admin dashboard, go to Mail flow > Rules, and click Add a rule.</p>



<p>Give a name, and add a condition that</p>



<pre class="wp-block-preformatted">If the message header Authentication-Results includes dmarc=faile</pre>



<pre class="wp-block-preformatted">Do the following actions, such as redirect to quarantine, or reject it back to the sender with or without an explanation.</pre>



<p>Since we are using DMARC, I believe we should respect its action setting too. So an exception might be necessary.</p>



<pre class="wp-block-preformatted">Except if the message header Authentication-Results includes 'dmarc=fail action=none'</pre>



<p>To wrap it up, a rule like this should get the job done.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="531" height="595" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-8.png?resize=531%2C595&#038;ssl=1" alt="" class="wp-image-5078" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-8.png?w=531&amp;ssl=1 531w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-8.png?resize=450%2C504&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-8.png?resize=250%2C280&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-8.png?resize=520%2C583&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-8.png?resize=360%2C403&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-8.png?resize=100%2C112&amp;ssl=1 100w" sizes="(max-width: 531px) 100vw, 531px" /></figure>The post <a href="https://www.kjctech.net/m365-how-to-stop-spf-failed-emails-from-passing-through/">M365 – How To Stop SPF-Failed Emails From Passing Through</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/m365-how-to-stop-spf-failed-emails-from-passing-through/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5076</post-id>	</item>
		<item>
		<title>Preventing Read Receipts From Sending Out on Microsoft 365</title>
		<link>https://www.kjctech.net/turning-off-the-focused-inbox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=turning-off-the-focused-inbox</link>
					<comments>https://www.kjctech.net/turning-off-the-focused-inbox/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Sun, 14 May 2023 05:33:30 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=5060</guid>

					<description><![CDATA[<p>Read receipts have been around for ages in Outlook with Exchange. It&#8217;s never reliable and annoying, and I thought it only seemed to work internally. However, that must have been changed lately, since I&#8217;ve seen read receipts sent out without a person&#8217;s knowledge. I even had a user coming to me asking why she kept getting this person&#8217;s out-of-office message [&#8230;]</p>
The post <a href="https://www.kjctech.net/turning-off-the-focused-inbox/">Preventing Read Receipts From Sending Out on Microsoft 365</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>Read receipts have been around for ages in Outlook with Exchange. It&#8217;s never reliable and annoying, and I thought it only seemed to work internally. However, that must have been changed lately, since I&#8217;ve seen read receipts sent out without a person&#8217;s knowledge. I even had a user coming to me asking why she kept getting this person&#8217;s out-of-office message every time she opened one of his emails. After a mail trace, it seems obvious that this person requested read receipts from all his emails. With his OoO on, any read receipt he receives triggers an Out-of-Office message back.</p>



<p>Creepy as hell, so I decided to put a stop to this by adding a Transport Rule that drops any read receipt right there.</p>



<p>Go to the <a href="https://admin.exchange.microsoft.com/" target="_blank" rel="noopener" title="">Exchange admin center</a>, and Rules under Mail flow. Click Add a Rule to create a rule with the following conditions,</p>



<ul class="wp-block-list">
<li>The recipient is external, outside the organization, and </li>



<li>The message properties include the message type <strong><em>ReadReceipt</em></strong>, and </li>



<li>The sender is inside the organization.</li>
</ul>



<p>and do the following action,</p>



<ul class="wp-block-list">
<li>Block the message and delete the message without notifying anyone.</li>
</ul>



<p>I&#8217;d suggest adding a Generate incident report action for a period of time to make sure the rule works the way you designed.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" decoding="async" width="523" height="669" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-7.png?resize=523%2C669&#038;ssl=1" alt="" class="wp-image-5064" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-7.png?w=523&amp;ssl=1 523w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-7.png?resize=450%2C576&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-7.png?resize=250%2C320&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-7.png?resize=520%2C665&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-7.png?resize=360%2C460&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/05/image-7.png?resize=100%2C128&amp;ssl=1 100w" sizes="(max-width: 523px) 100vw, 523px" /></figure>The post <a href="https://www.kjctech.net/turning-off-the-focused-inbox/">Preventing Read Receipts From Sending Out on Microsoft 365</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/turning-off-the-focused-inbox/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">5060</post-id>	</item>
		<item>
		<title>How To Change the Owner of A User&#8217;s OneDrive Data</title>
		<link>https://www.kjctech.net/how-to-change-the-owner-of-a-users-onedrive-data/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-change-the-owner-of-a-users-onedrive-data</link>
					<comments>https://www.kjctech.net/how-to-change-the-owner-of-a-users-onedrive-data/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Tue, 03 Jan 2023 06:25:15 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[OneDrive]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4837</guid>

					<description><![CDATA[<p>When someone leaves the company with a bunch of data left behind in their OneDrive account, the easiest way to access this data without going through the whole sharing exercise is probably to grant others administrator rights to this OneDrive account. Heading over to the SharePoint admin center and signing in with a Global Admin account. Click the More features [&#8230;]</p>
The post <a href="https://www.kjctech.net/how-to-change-the-owner-of-a-users-onedrive-data/">How To Change the Owner of A User’s OneDrive Data</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>When someone leaves the company with a bunch of data left behind in their OneDrive account, the easiest way to access this data without going through the whole sharing exercise is probably to grant others administrator rights to this OneDrive account.</p>



<p>Heading over to the <a href="https://mcquarriehunter-admin.sharepoint.com/" target="_blank" rel="noopener" title="">SharePoint admin center</a> and signing in with a Global Admin account.</p>



<p>Click the <strong>More features</strong> on the left pane and the <strong>Open</strong> button under the User profiles section.</p>



<figure class="wp-block-image size-large"><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?ssl=1" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" decoding="async" width="600" height="315" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=600%2C315&#038;ssl=1" alt="" class="wp-image-4838" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=600%2C315&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=450%2C236&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=250%2C131&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=768%2C403&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=700%2C367&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=520%2C273&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=360%2C189&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?resize=100%2C52&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image.png?w=1006&amp;ssl=1 1006w" sizes="(max-width: 600px) 100vw, 600px" /></a></figure>



<p>A classic SharePoint admin page opens up. Click <strong>Manage User Profiles</strong> under People.</p>



<figure class="wp-block-image size-large"><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?ssl=1" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" width="600" height="196" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?resize=600%2C196&#038;ssl=1" alt="" class="wp-image-4839" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?resize=600%2C196&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?resize=450%2C147&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?resize=250%2C82&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?resize=520%2C170&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?resize=360%2C117&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?resize=100%2C33&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-1.png?w=659&amp;ssl=1 659w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></figure>



<p>Type the name of the account into the Find profiles box and click the Find button to find the user account. Once found, right-click the account and choose <strong>Manage Site Collection Owners</strong>.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="600" height="361" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?resize=600%2C361&#038;ssl=1" alt="" class="wp-image-4840" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?resize=600%2C361&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?resize=450%2C271&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?resize=250%2C151&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?resize=520%2C313&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?resize=360%2C217&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?resize=100%2C60&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2023/01/image-2.png?w=689&amp;ssl=1 689w" sizes="auto, (max-width: 600px) 100vw, 600px" /></figure>



<p>Now you can add more users to the Administrator&#8217;s group and click the OK button once done.</p>



<p>Once it&#8217;s all set, that user&#8217;s OneDrive folder will be showing up automatically in the newly added administrator&#8217;s OneDrive folder.</p>The post <a href="https://www.kjctech.net/how-to-change-the-owner-of-a-users-onedrive-data/">How To Change the Owner of A User’s OneDrive Data</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/how-to-change-the-owner-of-a-users-onedrive-data/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4837</post-id>	</item>
		<item>
		<title>Email Stopped Working in Spiceworks HelpDesk Server</title>
		<link>https://www.kjctech.net/email-stopped-working-in-spiceworks-helpdesk-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=email-stopped-working-in-spiceworks-helpdesk-server</link>
					<comments>https://www.kjctech.net/email-stopped-working-in-spiceworks-helpdesk-server/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Fri, 22 Jul 2022 00:05:11 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Basic Authentication]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Spiceworks]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4794</guid>

					<description><![CDATA[<p>I use a self-host Spiceworks Helpdesk Server daily to manage all my support tickets. Email plays a big role to automates most of the steps during the process, from automatically generating tickets to sending notifications to support staff, to replying to a ticket with comments and commands that categorize, assign, or close the tickets. And that&#8217;s why it&#8217;s a big [&#8230;]</p>
The post <a href="https://www.kjctech.net/email-stopped-working-in-spiceworks-helpdesk-server/">Email Stopped Working in Spiceworks HelpDesk Server</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>I use a self-host Spiceworks Helpdesk Server daily to manage all my support tickets. Email plays a big role to automates most of the steps during the process, from automatically generating tickets to sending notifications to support staff, to replying to a ticket with comments and commands that categorize, assign, or close the tickets.</p>



<p>And that&#8217;s why it&#8217;s a big headache when it stopped working in the middle of the day.</p>



<p>Following the standard drill, I restarted the server, verified and confirmed the credentials, and reentered the same credentials. Nothing works.</p>



<p>SSH into the server, and pulled up the last 50 entries of the mailroom log from the following command.</p>



<pre class="wp-block-code"><code class="">sudo tail -n 50 /var/log/tron/mail_room/current</code></pre>



<p>And here is what I found.</p>



<figure class="wp-block-image size-large"><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?ssl=1" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" width="600" height="72" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=600%2C72&#038;ssl=1" alt="" class="wp-image-4795" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=600%2C72&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=450%2C54&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=250%2C30&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=768%2C92&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=700%2C84&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=520%2C62&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=360%2C43&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?resize=100%2C12&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-15.png?w=1001&amp;ssl=1 1001w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></figure>



<p>Something is blocking it because it makes no sense why the login failed when the credential is 100% working.</p>



<p>I recall I got a support email from Microsoft 365 not long ago about the basic authentications being disabled to my M365 tenant.</p>



<p>So I head over to my M365 admin portal, opened up the Help sidebar, and fired up this command.</p>



<pre class="wp-block-code"><code class="">dia: enable basic authentication in exchange online</code></pre>



<p>The result? Exchange Online IMAP4 Basi Auth Disabled.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="553" height="421" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-16.png?resize=553%2C421&#038;ssl=1" alt="" class="wp-image-4796" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-16.png?w=553&amp;ssl=1 553w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-16.png?resize=450%2C343&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-16.png?resize=250%2C190&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-16.png?resize=520%2C396&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-16.png?resize=360%2C274&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-16.png?resize=100%2C76&amp;ssl=1 100w" sizes="auto, (max-width: 553px) 100vw, 553px" /></figure>



<p>So what now? There is actually a box below the message that allows you to re-enable the service.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="505" height="459" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-17.png?resize=505%2C459&#038;ssl=1" alt="" class="wp-image-4797" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-17.png?w=505&amp;ssl=1 505w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-17.png?resize=450%2C409&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-17.png?resize=250%2C227&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-17.png?resize=360%2C327&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/07/image-17.png?resize=100%2C91&amp;ssl=1 100w" sizes="auto, (max-width: 505px) 100vw, 505px" /></figure>



<p>One minute after I updated the setting, emails started to follow again in the Spiceworks system. Amazingly effective.</p>



<p>It works for now but what happens when Microsoft permanently disables the Basic Authentication in October?</p>



<p>Stay tuned, I asked the question to <a href="https://community.spiceworks.com/topic/2458280-for-self-hosted-helpdesk-server-w-o365-basic-authentication-is-disabled" target="_blank" rel="noopener">the Spiceworks Community</a>, and was told:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>We are working on a plan and will keep you posted.</p></blockquote>



<h3 class="wp-block-heading">/update on Sept. 28, 2022/</h3>



<p>Well, Spiceworks decided to kill the product because of this Basic Authentication being depreciated and suggested anyone who uses Spiceworks Helpdesk Server migrate over to the cloud version instead. I&#8217;ve decided to go in another direction, move over to Freshdesk instead.</p>The post <a href="https://www.kjctech.net/email-stopped-working-in-spiceworks-helpdesk-server/">Email Stopped Working in Spiceworks HelpDesk Server</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/email-stopped-working-in-spiceworks-helpdesk-server/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4794</post-id>	</item>
		<item>
		<title>How Much Free Space Left in My SharePoint Online and What&#8217;s the Detail Usage?</title>
		<link>https://www.kjctech.net/how-much-free-space-left-in-my-sharepoint-online-and-whats-the-detail-usage/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-much-free-space-left-in-my-sharepoint-online-and-whats-the-detail-usage</link>
					<comments>https://www.kjctech.net/how-much-free-space-left-in-my-sharepoint-online-and-whats-the-detail-usage/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Mon, 27 Jun 2022 05:54:20 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[SharePoint Online]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4762</guid>

					<description><![CDATA[<p>I got a warning email from Microsoft stating that my organization is out of SharePoint Online storage. I was surprised at first, and even thought it was spam. But turns out, that running out of space on SharePoint Online is a thing. To view the total and available free storage space currently for your organization, go to Active sites in [&#8230;]</p>
The post <a href="https://www.kjctech.net/how-much-free-space-left-in-my-sharepoint-online-and-whats-the-detail-usage/">How Much Free Space Left in My SharePoint Online and What’s the Detail Usage?</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>I got a warning email from Microsoft stating that my organization is out of SharePoint Online storage. I  was surprised at first, and even thought it was spam. But turns out, that running out of space on SharePoint Online is a thing.</p>



<p>To view the total and available free storage space currently for your organization, go to <a href="https://go.microsoft.com/fwlink/?linkid=2185220" target="_blank" rel="noreferrer noopener">Active sites in the SharePoint admin center</a>, and check the numbers at the top right corner of the page.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="266" height="176" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/06/image-1.png" alt="" class="wp-image-4763" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-1.png?w=266&amp;ssl=1 266w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-1.png?resize=250%2C165&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-1.png?resize=100%2C66&amp;ssl=1 100w" sizes="auto, (max-width: 266px) 100vw, 266px" /></figure>



<p>So how is the total number calculated in the first place?</p>



<p>According to <a href="https://docs.microsoft.com/en-us/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits" target="_blank" rel="noreferrer noopener">SharePoint Limits</a>, if you are a small business, you probably get 1 TB plus 10 GB per license purchased. But the math doesn&#8217;t really add up here. I don&#8217;t actually have 170 licensed users in this tenant. So it still seems to be a mystery to me.</p>



<p>Now that I am almost out of the space. I have two choices, either pay an additional monthly fee to get more space or delete some old sites to free up more space.</p>



<p>If you choose to go with the latter, you will need a detailed usage report to see where to begin the process.</p>



<p>In Admin Dashboard, go to <strong>Reports > Usage</strong>, and click View More under SharePoint activity.</p>



<p>Switch to<strong> Site Usage</strong>, and you will see the detailed usage of each site listed a little bit down the page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="600" height="334" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/06/image-2-600x334.png" alt="" class="wp-image-4764" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-2.png?resize=600%2C334&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-2.png?resize=450%2C250&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-2.png?resize=250%2C139&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-2.png?resize=520%2C289&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-2.png?resize=360%2C200&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-2.png?resize=100%2C56&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image-2.png?w=669&amp;ssl=1 669w" sizes="auto, (max-width: 600px) 100vw, 600px" /></figure>



<p>However, for privacy concerns, both Site URL and Site owner columns are concealed. The report actually is useless with all concealed numbers and letters. To avoid that, you will need to go to Settings > Org settings, click on Reports, and uncheck the option &#8220;Display concealed user, group, and site names in all reports&#8221;.</p>



<p>Once done, refresh the Site Usage page and click on the <strong>Export</strong> button to download the usage list.</p>The post <a href="https://www.kjctech.net/how-much-free-space-left-in-my-sharepoint-online-and-whats-the-detail-usage/">How Much Free Space Left in My SharePoint Online and What’s the Detail Usage?</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/how-much-free-space-left-in-my-sharepoint-online-and-whats-the-detail-usage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4762</post-id>	</item>
		<item>
		<title>Whitelisting A Domain to Bypass Spam Filter Check in Microsoft 365</title>
		<link>https://www.kjctech.net/whitelisting-a-domain-to-bypass-spam-filter-check-in-microsoft-365/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=whitelisting-a-domain-to-bypass-spam-filter-check-in-microsoft-365</link>
					<comments>https://www.kjctech.net/whitelisting-a-domain-to-bypass-spam-filter-check-in-microsoft-365/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Fri, 17 Jun 2022 06:03:29 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4758</guid>

					<description><![CDATA[<p>Well, not something that has to be done but in some cases, bypassing the Spam Filter might be the only way to get emails from certain domains delivered. If you trust that domain, here is how you can do it. Head over to Exchange Online Admin Portal, and go to the Rules under the Mail flow section. Click the + [&#8230;]</p>
The post <a href="https://www.kjctech.net/whitelisting-a-domain-to-bypass-spam-filter-check-in-microsoft-365/">Whitelisting A Domain to Bypass Spam Filter Check in Microsoft 365</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>Well, not something that has to be done but in some cases, bypassing the Spam Filter might be the only way to get emails from certain domains delivered. If you trust that domain, here is how you can do it.</p>



<p>Head over to <a href="https://admin.exchange.microsoft.com/" target="_blank" rel="noreferrer noopener">Exchange Online Admin Portal</a>, and go to the <strong>Rules</strong> under the <strong>Mail flow</strong> section.</p>



<p>Click the + sign to start creating a new rule.</p>



<p>Name the new rule, such as Bypass Spam Filter, select <strong>The sender&#8217;s domain is</strong> as the rule, and type in the domain(s) you would like to whitelist. Note that if you don&#8217;t see this rule from the dropdown list, click <strong>More options&#8230;</strong> at the bottom left of the dialog box.</p>



<p>Then, in the action box, select <strong>Modify the message properties > set the spam confidence level (SCL)</strong>, and pick <strong>Bypass spam filtering </strong>from the list.</p>



<p>Finally, check the option &#8220;Stop processing more rules&#8221;, and click Save to save the rule.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="600" height="527" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/06/image-600x527.png" alt="" class="wp-image-4759" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=600%2C527&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=450%2C395&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=250%2C220&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=768%2C675&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=700%2C615&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=520%2C457&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=360%2C316&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?resize=100%2C88&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/06/image.png?w=782&amp;ssl=1 782w" sizes="auto, (max-width: 600px) 100vw, 600px" /></figure>



<p>To confirm, use the <strong>Message trace</strong> feature to make sure the emails from the whitelisted domain are delivered, instead of marked as FilteredAsSpam.</p>The post <a href="https://www.kjctech.net/whitelisting-a-domain-to-bypass-spam-filter-check-in-microsoft-365/">Whitelisting A Domain to Bypass Spam Filter Check in Microsoft 365</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/whitelisting-a-domain-to-bypass-spam-filter-check-in-microsoft-365/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4758</post-id>	</item>
		<item>
		<title>Microsoft 365 &#8211; What To Do When the Mailbox is Full &#8211; Online Archive</title>
		<link>https://www.kjctech.net/microsoft-365-what-to-do-when-the-mailbox-is-full/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=microsoft-365-what-to-do-when-the-mailbox-is-full</link>
					<comments>https://www.kjctech.net/microsoft-365-what-to-do-when-the-mailbox-is-full/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Tue, 18 Jan 2022 06:33:42 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Email Archiving]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4716</guid>

					<description><![CDATA[<p>Whether you manage your mailbox well or not, there is a good chance that your mailbox will eventually fill up. When that happens, you can go through the options trying to clean up again. But a better option here is to utilize the Online Archiving feature that Microsoft 365 offers out of the box for free which provides users with [&#8230;]</p>
The post <a href="https://www.kjctech.net/microsoft-365-what-to-do-when-the-mailbox-is-full/">Microsoft 365 – What To Do When the Mailbox is Full – Online Archive</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>Whether you manage your mailbox well or not, there is a good chance that your mailbox will eventually fill up. When that happens, you can go through the options trying to clean up again. But a better option here is to utilize the Online Archiving feature that Microsoft 365 offers out of the box for free which provides users with additional mailbox storage space.</p>



<p>Once you turn on the archive mailbox, you immediately got up to 100GB of additional storage available to you. And when that additional storage runs out, Microsoft 365 automatically adds more storage space to your archive until the total size reaches 1.5TB if the Auto-Expand feature is turned on. And that is plenty.</p>



<p>To enable the archive mailbox for a specific user:</p>



<pre class="wp-block-preformatted">Enable-Mailbox $userid -Archive</pre>



<p>And to enable it for all users that don&#8217;t have the archive feature enabled,</p>



<pre class="wp-block-preformatted">Get-Mailbox -Filter {ArchiveGuid -eq '00000000-0000-0000-0000-000000000000' -AND RecipientTypeDetails -eq 'UserMailbox'} | Enable-Mailbox -Archive</pre>



<p>Once done, you will see an additional mailbox called Online Archive automatically showing up in Outlook or Outlook Web Access. You can manually move or copy messages between your primary mailbox and the archive one. Or, simply let the retention policy that is set in place take care of the business for you.</p>



<p>And the nice about it, you can easily search for it by simply switching the search option from <strong>Current Mailbox</strong> to <strong>All Mailboxes</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="579" height="225" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/01/image-7.png" alt="" class="wp-image-4717" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-7.png?w=579&amp;ssl=1 579w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-7.png?resize=450%2C175&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-7.png?resize=250%2C97&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-7.png?resize=520%2C202&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-7.png?resize=360%2C140&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-7.png?resize=100%2C39&amp;ssl=1 100w" sizes="auto, (max-width: 579px) 100vw, 579px" /></figure>



<p>Even though the retention policy will kick in right away, you won&#8217;t see the actual archiving process happen right away. It is managed by the Managed Folder Assistant but if you can&#8217;t wait and would like to see that happen right away,</p>



<pre class="wp-block-preformatted">Start-ManagedFolderAssistant -Identity $userid</pre>



<p>To check a mailbox&#8217;s archive status and archive quota,</p>



<pre class="wp-block-preformatted">Get-Mailbox $identity | Select DisplayName, ArchiveStatus, ArchiveQuota</pre>



<p>To check how much online archive space was used for a certain mailbox, </p>



<pre class="wp-block-preformatted">Get-MailboxStatistics $identity -Archive | Select DisplayName, TotalItemSize</pre>



<p>The default retention policy is to archive anything that is 2 years old. If that&#8217;s not enough, you can set up a new retention policy to shorten the period.</p>



<pre class="wp-block-preformatted">New-RetentionPolicy "Archive 1 Year" -RetentionPolicyTagLinks "Personal 1 year move to archive"</pre>



<p>And assign the new policy to the mailbox that needs it.</p>



<pre class="wp-block-preformatted">Set-Mailbox $identity -RetentionPolicy "Archive 1 Year"</pre>



<p>Finally, when the online storage runs out of space, it&#8217;s time to turn on the Auto-Expand feature, either do it on a mailbox level,</p>



<pre class="wp-block-preformatted">Enable-Mailbox $identity -AutoExpandingArchive</pre>



<p>Or, do it at the organizational level.</p>



<pre class="wp-block-preformatted">Set-OrganizationConfig -AutoExpandingArchive</pre>



<p>And to check whether a mailbox&#8217;s auto-expanding is on,</p>



<pre class="wp-block-preformatted">Get-Mailbox $identity | Select AutoExpandingArchiveEnabled
Get-OrganizationConfig | Select AutoExpandingArchiveEnabled</pre>The post <a href="https://www.kjctech.net/microsoft-365-what-to-do-when-the-mailbox-is-full/">Microsoft 365 – What To Do When the Mailbox is Full – Online Archive</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/microsoft-365-what-to-do-when-the-mailbox-is-full/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4716</post-id>	</item>
		<item>
		<title>Microsoft 365 Preventing Distribution Group from Receiving Outside Emails</title>
		<link>https://www.kjctech.net/microsoft-365-preventing-distribution-group-from-receiving-outside-emails/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=microsoft-365-preventing-distribution-group-from-receiving-outside-emails</link>
					<comments>https://www.kjctech.net/microsoft-365-preventing-distribution-group-from-receiving-outside-emails/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Thu, 13 Jan 2022 06:59:34 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[powershell]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4706</guid>

					<description><![CDATA[<p>After getting too many spam emails sent to the distribution group, it&#8217;s time to tighten things a bit and restrict these groups from getting emails from outside parties. For regular Microsoft 365 groups, you can simply go to the Exchange Dashboard, open the group, switch to the Settings tab, and uncheck the option &#8220;Allow external senders to email this group&#8220;. [&#8230;]</p>
The post <a href="https://www.kjctech.net/microsoft-365-preventing-distribution-group-from-receiving-outside-emails/">Microsoft 365 Preventing Distribution Group from Receiving Outside Emails</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>After getting too many spam emails sent to the distribution group, it&#8217;s time to tighten things a bit and restrict these groups from getting emails from outside parties.</p>



<p>For regular Microsoft 365 groups, you can simply go to the Exchange Dashboard, open the group, switch to the <strong>Settings</strong> tab, and uncheck the option &#8220;<strong>Allow external senders to email this group</strong>&#8220;.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="517" height="353" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/01/image-2.png" alt="" class="wp-image-4707" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-2.png?w=517&amp;ssl=1 517w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-2.png?resize=450%2C307&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-2.png?resize=250%2C171&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-2.png?resize=360%2C246&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-2.png?resize=100%2C68&amp;ssl=1 100w" sizes="auto, (max-width: 517px) 100vw, 517px" /></figure>



<p>To make these changes in PowerShell, </p>



<pre class="wp-block-preformatted">Set-UnifiedGroup -Identify $group -RequireSenderAuthenticationEnabled $true</pre>



<p>That won&#8217;t work if these groups are synced from an on-premise Active Directory. In that case, you will need to set the <strong>msExchRequireAuthToSendTo</strong> attribute to <strong>True</strong> in AD&#8217;s group properties.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="400" height="473" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/01/image-3.png" alt="" class="wp-image-4708" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-3.png?w=400&amp;ssl=1 400w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-3.png?resize=250%2C296&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-3.png?resize=360%2C426&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-3.png?resize=100%2C118&amp;ssl=1 100w" sizes="auto, (max-width: 400px) 100vw, 400px" /></figure>



<p>And if you have many to update, the following PowerShell script can lend a hand.</p>



<pre class="wp-block-code"><code lang="powershell" class="language-powershell">$groups = Get-ADGroup -Filter * -SearchBase "OU=Groups,DC=TestDomain,DC=Local"
$newvalue = $true

ForEach ($group in $groups){
    $groupinfo = [ADSI]"LDAP://$($user.DistinguishedName)"
    $groupinfo.put('msExchRequireAuthToSendTo', $newvalue)
    $groupinfo.setinfo()
    $group.name + ' ' + $groupinfo.msExchRequireAuthToSendTo
}
</code></pre>The post <a href="https://www.kjctech.net/microsoft-365-preventing-distribution-group-from-receiving-outside-emails/">Microsoft 365 Preventing Distribution Group from Receiving Outside Emails</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/microsoft-365-preventing-distribution-group-from-receiving-outside-emails/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4706</post-id>	</item>
		<item>
		<title>Microsoft 365 &#8211; Migrate Emails from One Mailbox to Another</title>
		<link>https://www.kjctech.net/microsoft-365-migrate-emails-from-one-mailbox-to-another/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=microsoft-365-migrate-emails-from-one-mailbox-to-another</link>
					<comments>https://www.kjctech.net/microsoft-365-migrate-emails-from-one-mailbox-to-another/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Sat, 18 Sep 2021 06:52:08 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Office 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4664</guid>

					<description><![CDATA[<p>When it comes to moving emails from one mailbox to another, the first thing that comes to my mind is to use the ugly PST file. Export the emails from one mailbox and then import them into another, via Outlook. Truth be told, while it&#8217;s a feasible option, it&#8217;s daunting as hell. A much better option is to use PowerShell [&#8230;]</p>
The post <a href="https://www.kjctech.net/microsoft-365-migrate-emails-from-one-mailbox-to-another/">Microsoft 365 – Migrate Emails from One Mailbox to Another</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>When it comes to moving emails from one mailbox to another, the first thing that comes to my mind is to use the ugly PST file. Export the emails from one mailbox and then import them into another, via Outlook. Truth be told, while it&#8217;s a feasible option, it&#8217;s daunting as hell.</p>



<p>A much better option is to use PowerShell and let the server do all the work. And one cmdlet that just does the job is <em>Search-Mailbox.</em></p>



<p>Here is how it goes.</p>



<p>First of all, connect to Exchange Online.</p>



<pre class="wp-block-preformatted">Connect-ExchangeOnline</pre>



<p>An Office 365 login window pops up, sign in with an account that is a member of the Discovery Management role. You can log in as a Global Admin and go to Exchange &gt; Permissions to edit the Discovery Management role.</p>



<p>Then, to move all emails from one mailbox to another,</p>



<pre class="wp-block-preformatted">Search-Mailbox $sourcemailbox -TagertMailbox $targetmailbox -TargetFolderName $targetfoldername</pre>



<p>All three parameters are required. Messages will be copied to the target mailbox under the specified folder name. The structure goes like this:</p>



<pre class="wp-block-preformatted">TargetFolderName\Date of the search\Primary Mailbox\Inbox</pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="290" height="204" src="//i0.wp.com/kjctech.net/wp-content/uploads/2021/09/image.png" alt="" class="wp-image-4665" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image.png?w=290&amp;ssl=1 290w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image.png?resize=250%2C176&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/09/image.png?resize=100%2C70&amp;ssl=1 100w" sizes="auto, (max-width: 290px) 100vw, 290px" /></figure>



<p>It works like a charm. However, there is one limitation. It only returns 10,000 results per mailbox. So, for a larger mailbox or a larger amount of messages to move around, use the <em><a href="https://docs.microsoft.com/en-us/powershell/module/exchange/new-mailboxsearch?view=exchange-ps" target="_blank" rel="noreferrer noopener">New-ComplianceSearch </a></em>instead, which is a lot more complex.</p>



<p>If you want to see how big the mailbox is you are dealing with, use the -EstimateResultOnly switch.</p>



<pre class="wp-block-preformatted">Search-Mailbox $sourcemailbox -EstimateResultOnly</pre>



<p>You can also use the -SearchQuery switch to narrow down the messages that you want to migrate, such as subject line, To or From.</p>



<pre class="wp-block-preformatted">Search-Mailbox $sourcemailbox -SearchQuery "Subject: Away Today"</pre>



<p>And if you need to do a dry run, use -LogOnly.</p>



<p>Need very detailed log for the operation? -LogLevel Full is your friend.</p>



<p>Lastly, to make this all happen, you need to be part of the Discovery Management role in Office 365.</p>The post <a href="https://www.kjctech.net/microsoft-365-migrate-emails-from-one-mailbox-to-another/">Microsoft 365 – Migrate Emails from One Mailbox to Another</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/microsoft-365-migrate-emails-from-one-mailbox-to-another/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4664</post-id>	</item>
	</channel>
</rss>
