Solved

Create Dynamic Distribution List  containing users enabled for Office Communicator

Posted on 2010-09-13
18
656 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
how to add IIS SMTP to handle application/Scanner relays into office 365.

744 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

14 Experts available now in Live!

Get 1:1 Help Now