Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Turning off Junk Folder - cmdlet produces error

Posted on 2011-02-10
3
Medium Priority
?
2,524 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 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

610 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