Link to home
Start Free TrialLog in
Avatar of PanosMitkas
PanosMitkas

asked on

OWAenabled property Error

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
Avatar of tshearon
tshearon
Flag of United States of America image

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
Avatar of PanosMitkas
PanosMitkas

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of PanosMitkas
PanosMitkas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just posting what I did to solve the issue, so others may benefit. Not interested in points
As stated above
Just posting what I did to solve the issue, so others may benefit. Not interested in points