Solved

Create Dynamic Distribution List  containing users enabled for Office Communicator

Posted on 2010-09-13
18
664 Views
Last Modified: 2012-05-10
we have Exchange 2007 SP1,  Windows 2003 Active directory and recently deployed Office Communicator 2007 R2.

at this time the OCS deployment is in a pilot phase, we have enabled certain users in IT and there is a specific need to create a Dynamic DL in exchange which contains users enabled for OCS.

How can i create one, please suggest.

Cheers!
0
Comment
Question by:amku03
[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
  • 9
  • 9
18 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33667827
For 2010:
New-DynamicDistributionGroup -Name TestDDG -RecipientFilter { ((EmailAddresses -like 'SIP:*') -or (((((((RecipientType -eq 'UserMailbox') -or (((RecipientType -eq 'MailUniversalDistributionGroup') -or (RecipientType -eq 'MailUniversalSecurityGroup') -or (RecipientType -eq 'MailNonUniversalGroup') -or (RecipientType -eq 'DynamicDistributionGroup'))))))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox'))))) }

for 2007:
New-DynamicDistributionGroup -Name TestDDG -RecipientFilter { ((EmailAddresses -like 'SIP:*') -or (((((((RecipientType -eq 'UserMailbox') -or (((RecipientType -eq 'MailUniversalDistributionGroup') -or (RecipientType -eq 'MailUniversalSecurityGroup') -or (RecipientType -eq 'MailNonUniversalGroup') -or (RecipientType -eq 'DynamicDistributionGroup'))))))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) ))) }
0
 

Author Comment

by:amku03
ID: 33667856
Thanks...trying this right now
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33667864
use my other script to verify members

$group = Get-DynamicDistributionGroup "Contoso Users"
Get-Recipient -RecipientPreviewFilter $group.RecipientFilter -OrganizationalUnit $group.RecipientContainer | ft displayName,primarysmtpaddress
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 32

Expert Comment

by:endital1097
ID: 33667868
remove the -organizationalunit switch for 2007
0
 

Author Comment

by:amku03
ID: 33667980
i am assuming thsi will take time to get created...
the command doesn't seems to coming out of execution...
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33667991
no it should run quickly
did it go to a line with
<<
0
 

Author Comment

by:amku03
ID: 33668001
yes it did
>>
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33668010
copy and paste the command in notepad
make sure it runs on a single line and try again
0
 

Author Comment

by:amku03
ID: 33668015
ok my bad...missed one }
its fine now
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33668030
did you verify memebers
0
 

Author Comment

by:amku03
ID: 33668062
Seems to be a problem...
I am previewing the DL through EMC and its giving all users as members.
I am sure that we have only 30 or 40 users max with OCS.

Where did I go wrong
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33668071
my bad, i took an old script where they needed an or
delete the group and change the command

((EmailAddresses -like 'SIP:*') -and
0
 

Author Comment

by:amku03
ID: 33668087
This looks perfect!!
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33668095
great news. sorry about the or mixup :)
0
 

Author Comment

by:amku03
ID: 33668110
now on the second part:
how can i user your script to verify the members in EMS?

I am pretty new to powershell and I am getting errors while running your second script
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33668149
you must have 2007
update it to two lines

$group = Get-DynamicDistributionGroup "Contoso Users"
Get-Recipient -RecipientPreviewFilter $group.RecipientFilter | ft displayName,primarysmtpaddress
0
 

Author Comment

by:amku03
ID: 33668185
Ok...need to work on this...but for now I am good.

Could you also take a look on my other open question:
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_26469054.html


Thanks for your help
0
 

Author Closing Comment

by:amku03
ID: 33668187
Excellent!!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In this video we show how to create a mailbox database 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 Servers >> Data…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

622 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