Quantcast
Viewing all articles
Browse latest Browse all 21975

Find 3 character smtp prefixes

I'm trying to list all the users in my domain whose primary SMTP Prefix is 3 characters.  I thought I could just do:

Get-QADUser -sizelimit 999999 | where {$_.PrimarySMTPPrefix -like "???"} | Select-Object name, primarysmtpaddress

However that doesn't seem to work.  I've also tried:

Get-QADUser -sizelimit 999999 | Select-Object primarysmtpaddressprefix | Measure-Object -property length

But that doesn't seem to output anything.  Any help would be appreciated.

Thanks,

Isaac


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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