Solved

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

Posted on 2014-01-12
3
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

632 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