Solved

Create Dynamic Distribution List  containing users enabled for Office Communicator

Posted on 2010-09-13
18
658 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
how to add IIS SMTP to handle application/Scanner relays into office 365.

809 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