?
Solved

need powershell assistance with an exchange group creation command

Posted on 2014-09-25
5
Medium Priority
?
418 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 2000 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

800 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