Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

OWAenabled property Error

Posted on 2014-11-12
6
Medium Priority
?
517 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses

722 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