Solved

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

Posted on 2014-01-12
3
247 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

734 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