Solved

Dynamic Distribution Group recipient filter

Posted on 2014-11-18
1
73 Views
Last Modified: 2015-09-25
I need to create a recipient filter that on gets users that have a certain Office value and a certain Title but it will be several specific office values and several title values.   ie: 3102-nashville or 3104 Smyrna  with the title of plant mgr or operations mgr or mgr  I have this so far but it is including any one with the titles listed

-RecipientFilter {((Office -eq '7120 - LKQ Delaware LLP' -or (Office -eq '7142 - LKQ Sonshine Auto Parts') -or (Office -eq '7145 - LKQ M Robert') -or (Office -eq '7160 - Lecavalier - Saint-Sophie,QC') -or (Office -eq '7161 - Lecavalier - St-Jean-sur-Richelieu,QC') -or (Office -eq '7162 - Lecavalier - Laval,QC') -or (Office -eq '3256 - Montreal, QC (#256)') -or (Office -eq '3257 - Ste. Madeleine, QC (M Robert)') -or (Office -eq '3260 - Sherbrooke, QC (#260)') -and ((Title -eq 'Category Manager') -or (Title -eq 'PBE Branch Mgr')-or (Title -eq 'Plant Mgr') -or (Title -eq 'Yard Mgr') -or (Title -eq 'Office Mgr') -or (Title -eq 'Warehouse Mgr') -or (Title -eq 'Sales Mgr - Inside Sales') -or (Title -eq 'Sr VP Human Resources') -or (Title -eq 'Product Support Mgr') -or (Title -eq 'VP Operations') -or (Title -eq 'Regional Sales Mgr') -or (Title -eq 'Inventory Mgr - E') -or (Title -eq 'Purchasing Mgr'))}
0
Comment
Question by:McLovin
[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
1 Comment
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 500 total points
ID: 40450985
I think its because you have not closed the condition for Office value. You have missed the last brace while ending Office conditions

-RecipientFilter {((Office -eq '7120 - LKQ Delaware LLP') -or (Office -eq '7142 - LKQ Sonshine Auto Parts') -or (Office -eq '7145 - LKQ M Robert') -or (Office -eq '7160 - Lecavalier - Saint-Sophie,QC') -or (Office -eq '7161 - Lecavalier - St-Jean-sur-Richelieu,QC') -or (Office -eq '7162 - Lecavalier - Laval,QC') -or (Office -eq '3256 - Montreal, QC (#256)') -or (Office -eq '3257 - Ste. Madeleine, QC (M Robert)') -or (Office -eq '3260 - Sherbrooke, QC (#260)')) -and ((Title -eq 'Category Manager') -or (Title -eq 'PBE Branch Mgr')-or (Title -eq 'Plant Mgr') -or (Title -eq 'Yard Mgr') -or (Title -eq 'Office Mgr') -or (Title -eq 'Warehouse Mgr') -or (Title -eq 'Sales Mgr - Inside Sales') -or (Title -eq 'Sr VP Human Resources') -or (Title -eq 'Product Support Mgr') -or (Title -eq 'VP Operations') -or (Title -eq 'Regional Sales Mgr') -or (Title -eq 'Inventory Mgr - E') -or (Title -eq 'Purchasing Mgr'))}
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
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…

730 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