Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OWAenabled property Error

Posted on 2014-11-12
6
Medium Priority
?
536 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
  • 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
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 

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

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

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

The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
In this video we show how to create an email address policy 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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

876 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