Solved

OWAenabled property Error

Posted on 2014-11-12
6
487 Views
Last Modified: 2014-12-02
Hi guys, I am sure you have seen this before.
When I run scripts to find out what kind of devices we have in the company, this comes up on some users:

WARNING: The OWAEnabled property of mailbox 'Userxxx' isn't in a
consistent state. Reset the OWAEnabled property using the Set-CASMailbox cmdlet.

Now, fixing it is no problem but is there a way to get out a result with all mailboxes with similar problems?
someting like

Get-problemmailbox |export-CSV
Let me know if what i mean is unclear.
br.
Panos
0
Comment
Question by:PanosMitkas
[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
  • 5
6 Comments
 
LVL 8

Expert Comment

by:tshearon
ID: 40440217
Not totally clear but maybe I can offer something. If you are wishing to get a list of mailboxes with the status of the owaenabled property then you can just use the following and sort your results by the property:

Get-CASMailbox -ResultSize unlimited | ft DisplayName, OWAEnabled |export-csv c:\owaenabled.csv -NoTypeInformation

To see who is enabled only run the following:

Get-CASMailbox -ResultSize unlimited | where { $_.OWAEnabled } | ft DisplayName, OWAEnabled |export-csv c:\owaenabled.csv -NoTypeInformation
0
 

Author Comment

by:PanosMitkas
ID: 40441965
Well not exactly. Actually what i want is to get all errors (the yellow lines) i get when I run scripts like that. I administrate an environment of over 25000 users, where a lot came in during migrations from other domains and some objects have errors. The objective is to couch these objects and correct the errors.
br.
Panos
0
 

Accepted Solution

by:
PanosMitkas earned 0 total points
ID: 40468961
For any that may have interest, it was quite easy. The solution was to do multiple queries on different properties and save the warnings, f.x.
Get-Casmailbox –resultsize unlimited | foreach {$_.Warning}

Get-Casmailbox –resultsize unlimited | Where-Object –Property Warning

Get-Casmailbox –resultsize unlimited 3> d:\temp\warnings.txt
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 

Author Comment

by:PanosMitkas
ID: 40468964
Just posting what I did to solve the issue, so others may benefit. Not interested in points
0
 

Author Comment

by:PanosMitkas
ID: 40468967
As stated above
0
 

Author Closing Comment

by:PanosMitkas
ID: 40475507
Just posting what I did to solve the issue, so others may benefit. Not interested in points
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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.
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
This video discusses moving either the default database or any database to a new volume.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

630 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