Solved

Turning off Junk Folder - cmdlet produces error

Posted on 2011-02-10
3
2,500 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
  • 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
In this video we show how to create a Distribution Group 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 Recipients >>…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now