Disable clutter for all users using PowerShell 5/5 (1)

The Clutter option is a new Exchange Online feature, which was created for helping Office 365 customers (Exchange Online recipient) to effectively manage their mailbox content by “relocate” non-important or non-Crucial E-mail message to a specific folder named Clutter.

The Exchange Online Clutter feature is automatically activated for all Exchange Online recipients and the issue with this “automation” is that, many times the Exchange administrator doesn’t want to activate the Clutter option or the users don’t understand the Clutter feature and the report that some mail are “missing” (mail items that were “moved” to the Clutter folder)

The good news is that every user has the option of disabling the clutter option but the less good news is that at the current time, the Exchange Online management web interface doesn’t include an option of disabling the Clutter option in bulk mode

The solution is to use a PowerShell command that runs in a bulk mode on all of the existing Exchange Online mailboxes and disable the Clutter option.

The PowerShell command that we need to run is very simple

Get-Mailbox -ResultSize Unlimited | Set-Clutter -Enable $False

Connect to Exchange Online using PowerShell

PowerShell console – First-time configuration

To be able to find the built-in PowerShell console, use the search option in the start menu by looking for the word PowerShell.

In the search results, we can see the required PowerShell console named – Windows PowerShell

Connect to Exchange Online using remote PowerShell -01

To be able to run the required PowerShell commands, we will need to activate the Windows PowerShell console using the option of – Run as administrator

Right click on the Windows PowerShell icon and choose the menu – Run as administrator

Connect to Exchange Online using remote PowerShell -02

We will need a PowerShell command that will provide the required permission for running PowerShell command

Set-ExecutionPolicy Unrestricted –force

In the following screenshot, we can see an example. To execute the PowerShell command, press the ENTER key

Connect to Exchange Online using remote PowerShell -03

Running the PowerShell set of command for connecting Exchange Online

The connection to Exchange Online by using remote PowerShell is implemented by using three sets of PowerShell command.

$UserCredential = Get-Credential

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

Import-PSSession $Session

Technically, we can copy this set of command and paste it in the Windows PowerShell console.

When we use the option of “copy and paste” for paste a “long set” of PowerShell command, we can experience some problem which relates to issues such as – spaces etc.

If you experience such problems, try to paste the PowerShell command by copy and paste each one of the PowerShell command set.

Step 1#3 – using the credentials PowerShell command

Copy and paste the following PowerShell command

$UserCredential = Get-Credential

Connect to Exchange Online using remote PowerShell -04

As a result, an authentication window will appear

Type in your Office 365 global administrator credentials.

Connect to Exchange Online using remote PowerShell -05

Step 2#3 – connecting to Exchange Online

The following PowerShell command serves for specifying the Exchange Online URL address that is used for the remote PowerShell session

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

Connect to Exchange Online using remote PowerShell -06

Step 3#3 – Import Exchange Online PowerShell cmdlets

This is the last phase; which we import all of the Exchange Online cmdlets to the existing PowerShell console.

Copy and paste the following PowerShell command

Import-PSSession $Session

In the following screenshot, we can see the result.

Connect to Exchange Online using remote PowerShell -08

Disable Clutter for all users using PowerShell

To be able to disable the Clutter option for all existing Exchange Online mailboxes, in the PowerShell console run the following command:

Get-Mailbox -ResultSize Unlimited | Set-Clutter -Enable $False

In the following screenshot, we can see the result, the PowerShell command will find all of the existing Exchange Online mailboxes and disable the Clutter feature

Disable clutter by using the PowerShell command

It’s important to mention that the procedure of disabling the Clutter option will be “executed” only for existing Exchange Online mailboxes.

In case that a new Exchange Online mailbox was created after you have run the PowerShell command, you will need to run again the PowerShell command for disabling the Clutter option for the “New Exchange Online mailboxes”.

PowerShell command syntax – Office 365 | Article series index

Now it’s Your Turn!
It is important for us to know your opinion on this article

Summary
Article Name
Disable clutter for all users using PowerShell
Description
The Clutter option is a new Exchange Online feature, which was created for helping Office 365 customers (Exchange Online recipient) to effectively manage their mailbox content by “relocate” non-important or non-Crucial E-mail message to a specific folder named Clutter.
Author
Publisher Name
o365info.com
Publisher Logo

Please rate this

Print Friendly

Related Post

Eyal Doron on EmailEyal Doron on FacebookEyal Doron on GoogleEyal Doron on LinkedinEyal Doron on PinterestEyal Doron on RssEyal Doron on TwitterEyal Doron on WordpressEyal Doron on Youtube
Eyal Doron
Share your knowledge.
It’s a way to achieve immortality.
Dalai Lama

6 Responses to “Disable clutter for all users using PowerShell”

  1. Perfect, this has been a headache for us , with over 380 mailboxes, I dreaded doing them one by one.
    Thanks fo a great , well explained set of instructions, worked like a charm

  2. Great write up. What happens to the email in the clutter folder after this is run?

    • The clutter folder is still visible in your Outlook list and the existing mail stays there until you move it.

  3. Oke, nice. But incredibly slow execution of commands. This PS would never make it in the Linux world. Too verbose, too non forgiving, to slow. MS still has some things to learn.

    • As a newish Exchange admin, I needed something that I could verify the commands and was not a script that I would have to parse through for a couple of hours. Thank you very much for the two cmdlets. Worked perfectly.

Leave a Reply

Your email address will not be published. Required fields are marked *