Solved

Turning off Junk Folder - cmdlet produces error

Posted on 2011-02-10
3
2,518 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:deflint
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 34865214
I seem to recall this error when a mailbox exists that has NEVER been connected to? do you have any of these maybe?
0
 

Author Comment

by:deflint
ID: 34865297
There are a few: Launch IIS Process Accounts are 2.
0
 

Author Closing Comment

by:deflint
ID: 34872054
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

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question