Solved

need powershell assistance with an exchange group creation command

Posted on 2014-09-25
5
408 Views
Last Modified: 2014-10-05
hello, can someone provide the opath syntax to create a dynamic distribution group that will deliver the following results:
1. EmployeeID value is present [we have a value in the employeeID attribute in AD for all employees]
2. extenstionAttribute3 is not: 1a
3. extenstionAttribute10 is not: "Direct Selling"

thanks in advance.

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
5 Comments
 
LVL 13

Accepted Solution

by:
imkottees earned 500 total points
ID: 40345699
try this one....

New-DynamicDistributionGroup -Name "Full Time Employees" -RecipientFilter {(RecipientTypeDetails -eq 'UserMailbox') -and (EmployeeID -eq 'true') -and (CustomAttribute3 -ne '1a') -and (CustomAttribute10 -ne 'Direct Selling')}
0
 

Author Comment

by:siber1
ID: 40345912
hello Imkottees, here is the error i get when trying to include "employeeID" in the command:

[PS] C:\Windows\system32>New-DynamicDistributionGroup -Name "ztest5" -RecipientFilter {(RecipientTypeDetails -eq 'UserMa
ilbox') -and (EmployeeID -eq 'true') -and (CustomAttribute3 -ne '1a') -and (CustomAttribute10 -ne 'Direct Selling')}
Invoke-Command : Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": ""Employee
ID" is not a recognized filterable property. For a complete list of filterable properties see the command help.
"(RecipientTypeDetails -eq 'UserMailbox') -and (EmployeeID -eq 'true') -and (CustomAttribute3 -ne '1a') -and (CustomAtt
ribute10 -ne 'Direct Selling')" at position 48."

Open in new window

0
 
LVL 16

Expert Comment

by:Rajitha Chimmani
ID: 40346811
There is a restriction on properties which can be used in filters. The EmployeeID parameter cannot be used in the filter. Instead you can add EmployeeID to any customattribute and use that customattribute as a filter in this group.
0
 

Author Comment

by:siber1
ID: 40362386
I've requested that this question be closed as follows:

Accepted answer: 0 points for siber1's comment #a40345912

for the following reason:

thanks.
0
 

Author Closing Comment

by:siber1
ID: 40362387
thanks
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

Suggested Solutions

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

733 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