need assistance with an opath [dynamic group query] for exchange 2010

can someone provide the opath logic that looks for all users that have customattribute2 = 17*
(or) username -eq jsmith

to clarify, all accounts with customattribute2 set to 17*  [beginning with 17] or a specific user name jsmith.

many thanks,

S.
siber1Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jamie McKillopConnect With a Mentor IT ManagerCommented:
Hello,

It would look like this:

{(extensionAttribute2 -like '17*') -or (samAccountName -eq 'jsmith')}

-JJ
0
 
suriyaehnopCommented:
Get-Mailbox -ResultSize Unlimited | Where {($_.CustomAttribute2 -eq "17*") or ($_.Alias -eq "jsmith")}

Open in new window

0
 
siber1Author Commented:
thx JJ that worked perfectly.
0
All Courses

From novice to tech pro — start learning today.