[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 569
  • Last Modified:

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
0
PanosMitkas
Asked:
PanosMitkas
  • 5
1 Solution
 
tshearonCommented:
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
 
PanosMitkasAuthor Commented:
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
 
PanosMitkasAuthor Commented:
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.

 
PanosMitkasAuthor Commented:
Just posting what I did to solve the issue, so others may benefit. Not interested in points
0
 
PanosMitkasAuthor Commented:
As stated above
0
 
PanosMitkasAuthor Commented:
Just posting what I did to solve the issue, so others may benefit. Not interested in points
0

Featured Post

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.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now