Solved

need powershell assistance with an exchange group creation command

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
To show how to create a transport rule 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 >> Rules tab.:  To cr…
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…

708 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

18 Experts available now in Live!

Get 1:1 Help Now