Exchange-Online-PowerShell-Recipes

Enable Focused Inbox For All User Mailboxes

Problem

You need to enable the Focused Inbox feature for all user mailboxes where it is disabled.

Solution

Get-EXOMailbox -RecipientTypeDetails Usermailbox |
Select-Object -Property Identity |
Get-FocusedInbox |
Where-Object {$_.FocusedInboxOn -eq $False} |
Foreach-Object {Set-FocusedInbox -Identity $_.MailboxIdentity -FocusedInboxOn $True}