Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dynamic Distribution Group recipient filter

Posted on 2014-11-18
1
Medium Priority
?
89 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 2000 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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
To show how to generate a certificate request 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 Servers >> Certificates…
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…

715 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