Turning off Junk Folder - cmdlet produces error

I am attempting to globally turn off the Junk Email Folder using this cmdlet (run as the Admin)..
Get-Mailbox -Database Mailboxes | Set-MailboxJunkEmailConfiguration -Enabled $false
I receive the error:
The Junk E-Mail configuration couldn't be set. The user needs to sign in to Outlook Web App before they can modify their Safe Senders and Recipients or Blocked Senders lists.
    + CategoryInfo          : NotSpecified: (2:Int32) [Set-MailboxJunkEmailConfiguration], DataSourceOperationException

I did login to Outlook Web App which made no difference.

The cmdlet for specific mailboxes works fine.
Set-MailboxJunkEmailConfiguration -Identity username -Enabled $false
deflintAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Neil RussellConnect With a Mentor Technical Development LeadCommented:
I seem to recall this error when a mailbox exists that has NEVER been connected to? do you have any of these maybe?
0
 
deflintAuthor Commented:
There are a few: Launch IIS Process Accounts are 2.
0
 
deflintAuthor Commented:
It turns out, despite the errors, this cmdlet does actually disable the junk mail settings on all the user's mailboxes. I suspect you're right in saying the errors are related to mailboxes never initialized (system mailboxes,etc) so you get the points for pointing that out. Thanks.
0
All Courses

From novice to tech pro — start learning today.