Solved

need powershell assistance with an exchange group creation command

Posted on 2014-09-25
5
414 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
how to add IIS SMTP to handle application/Scanner relays into office 365.

717 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