export mailboxes with clutter enabled

%3CLINGO-SUB%20id%3D%22lingo-sub-276763%22%20slang%3D%22en-US%22%3Eexport%20mailboxes%20with%20clutter%20enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276763%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHi%20experts%20i%20want%20to%20disable%20clutter%20for%20all%20my%20mailboxes%20in%20office365%2C%20expert%20how%20do%20i%20export%20the%20users%20list%20having%20clutter%20mailbox%20enabled.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-276763%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276894%22%20slang%3D%22en-US%22%3ERe%3A%20export%20mailboxes%20with%20clutter%20enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276894%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F139420%22%20target%3D%22_blank%22%3E%40Rising%20Flight%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20do%20this%20through%20Powershell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELog%20into%20the%20Exchange%20Online%20Powershell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20pull%20your%20list%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-MailBox%20-Filter%20'(RecipientTypeDetails%20-eq%20%22UserMailbox%22)'%20%7C%20Where-Object%20%7B(Get-Clutter%20-Identity%20%24_.UserPrincipalName).IsEnabled%20-eq%20%24True%7D%20%7C%20select%20PrimarySmtpAddress%20%7C%20export-csv%20C%3A%5Cfilepath%5Cfilename.csv%3CBR%20%2F%3E%3CBR%20%2F%3EThat%20will%20give%20you%20a%20CSV%20will%20a%20list%20of%20all%20the%20email%20address%20that%20have%20clutter%20enabled.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20disable%20it%20for%20all%20users%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20To%20do%20this%20to%20all%20users%20mailboxes%20on%20your%20tenant%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22crayon-r%20%22%3EGet-MailBox%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-cn%22%3E-Filter%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-s%22%3E'(RecipientTypeDetails%20-eq%20%22UserMailbox%22)'%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-o%22%3E%7C%3C%2FSPAN%3E%26nbsp%3BS%3CSPAN%20class%3D%22crayon-r%20%22%3Eet-Clutter%20-Enable%3C%2FSPAN%3E%26nbsp%3B%3CSPAN%20class%3D%22crayon-v%22%3E%24False%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20To%20do%20this%20for%20just%20the%20current%20enabled%20ones%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22crayon-v%22%3E%24AllMailboxes%20%3CSPAN%20class%3D%22crayon-o%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-r%20%22%3EGet-MailBox%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-cn%22%3E-Filter%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-s%22%3E'(RecipientTypeDetails%20-eq%20%22UserMailbox%22)'%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-o%22%3E%7C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-r%20%22%3EWhere-Object%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-sy%22%3E%7B%3C%2FSPAN%3E%3CSPAN%20class%3D%22crayon-sy%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22crayon-r%20%22%3EGet-Clutter%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-cn%22%3E-Identity%3C%2FSPAN%3E%20%24_%3CSPAN%20class%3D%22crayon-sy%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22crayon-i%22%3EUserPrincipalName%3C%2FSPAN%3E%3CSPAN%20class%3D%22crayon-sy%22%3E)%3C%2FSPAN%3E%3CSPAN%20class%3D%22crayon-sy%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22crayon-i%22%3EIsEnabled%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22crayon-cn%22%3E-eq%3C%2FSPAN%3E%20%24True%3CSPAN%20class%3D%22crayon-sy%22%3E%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22crayon-v%22%3EForEach%20(%24Mailbox%20in%20%24AllMailboxes)%3CBR%20%2F%3E%7B%3CBR%20%2F%3ESet-Clutter%20-Identity%20%24Mailbox.UserPrincipalName%20-Enable%20%24False%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20this%20helps!%3CBR%20%2F%3EAdam%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi experts i want to disable clutter for all my mailboxes in office365, expert how do i export the users list having clutter mailbox enabled.

1 Reply
Highlighted

Hello @Rising Flight,

 

You can do this through Powershell.

 

Log into the Exchange Online Powershell.

 

To pull your list:

 

Get-MailBox -Filter '(RecipientTypeDetails -eq "UserMailbox")' | Where-Object {(Get-Clutter -Identity $_.UserPrincipalName).IsEnabled -eq $True} | select PrimarySmtpAddress | export-csv C:\filepath\filename.csv

That will give you a CSV will a list of all the email address that have clutter enabled.

 

To disable it for all users:

 

1. To do this to all users mailboxes on your tenant:

Get-MailBox -Filter '(RecipientTypeDetails -eq "UserMailbox")' | Set-Clutter -Enable $False

2. To do this for just the current enabled ones:

$AllMailboxes = Get-MailBox -Filter '(RecipientTypeDetails -eq "UserMailbox")' | Where-Object {(Get-Clutter -Identity $_.UserPrincipalName).IsEnabled -eq $True}

 

ForEach ($Mailbox in $AllMailboxes)
{
Set-Clutter -Identity $Mailbox.UserPrincipalName -Enable $False
}

Hope this helps!
Adam