Solved

Dynamic Distribution Group recipient filter

Posted on 2014-11-18
1
54 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this video we show how to create a Shared Mailbox 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 >> Sha…
In this video we show how to create an email address policy 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 Mail Flow…

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now