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