Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

skip mailboxes in specific organizational unit

$
0
0

Hello,

I have users with wrong windowsemailaddress attribute, these users located in a specific OU in my AD.

I want to run get-mailbox cmdlet that will skip this mailboxes.

the issue is when I'm running the following command:

Get-Mailbox -ResultSize Unlimited | ? {$_.OrganizationalUnit -ne "mydomain/myou etc..."}

I still have warning output that says:

WARNING: Could not convert property WindowsEmailAddress to type SmtpAddress

How do I skip this mailboxes to not be checked in my get-mailbox?

Thanks ahead




Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>