Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
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…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

776 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