Create Dynamic Distribution Group in EMC Shell based on Pre-Existing Mail-Enabled Universal Distribution Group

I have pre-existing Universal Distribution Groups, with a specific description, that I need to create a Dynamic Distribution Group on.  It can no longer be done through ADUC in Exchange 2007, and in order to add certain recipient filters, it needs to be done through the EMC Shell.    

What is the proper syntax in the EMC Shell to create a Dynamic Group made up of existing distribution groups with a specific description?
LVL 1
njmattAsked:
Who is Participating?
 
Manpreet SIngh KhatraConnect With a Mentor Solutions Architect, Project LeadCommented:
I think that this should take care of what you are looking for

New-DynamicDistributionGroup -Name "Mailbox Users on Server1" -OrganizationalUnit Users -RecipientFilter {((RecipientType -eq 'UserMailbox' -and ServerName -eq 'Server1') -and -not(Name -like 'SystemMailbox{*'))}
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
can you do that through the EMC from the distribution group container under Recipient configuration
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
njmattAuthor Commented:
Rancy, thanks for your response.  I did come across that TechNet article.  The problem I'm running into is the correct syntax for using a Distribution Group, and for specifying the description of those groups.  When creating within the EMC itself, it does not allow to specify a description, which is the way this group needs to be created.
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
here you can specify
[-ConditionalCompany <MultiValuedProperty>] [-ConditionalCustomAttribute1 <MultiValuedProperty>]
[-ConditionalDepartment <MultiValuedProperty>] [-ConditionalStateOrProvince <MultiValuedProperty>]
0
 
njmattAuthor Commented:
I was able to create the group successfully, however, it did not pull the necessary distribution groups by description...any idea the syntax to specify the description?

is it..

-RecipientFilter (Description -eq "Sub Contractor")
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
I looked but you might have to do some scripting like
{$. Discription -like\eq "name" } may be this works or not in the filter rule.
So the command could be like
Get-DynamicDistributionGroup | where {$. Discription -like\eq "name" } and see if you can get the output as i looked at a lot of forums and blogs but couldnt find one but if you could provide me your info and in case i get something ill mail or post it here.

Thanks
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
You can also have a look at this article to find how to get a list of object with filter rules
http://technet.microsoft.com/en-us/library/bb124762.aspx
0
 
njmattAuthor Commented:
Rancy,

Thanks for your help.  For the time being, I just added the necessary description call into the Custom Attributes 1 field for all necessary recipients.  That way, I am able to designate that when creating the Dynamic List in EMC itself.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.