Solved

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

Posted on 2014-01-12
3
242 Views
Last Modified: 2014-01-16
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.
0
Comment
Question by:siber1
3 Comments
 
LVL 18

Expert Comment

by:suriyaehnop
ID: 39776438
Get-Mailbox -ResultSize Unlimited | Where {($_.CustomAttribute2 -eq "17*") or ($_.Alias -eq "jsmith")}

Open in new window

0
 
LVL 37

Accepted Solution

by:
Jamie McKillop earned 500 total points
ID: 39776444
Hello,

It would look like this:

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

-JJ
0
 

Author Closing Comment

by:siber1
ID: 39787532
thx JJ that worked perfectly.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now