Solved

Turning off Junk Folder - cmdlet produces error

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

726 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