Solved

Adding contacts to DL using DSMOD

Posted on 2011-09-07
11
1,135 Views
Last Modified: 2012-06-27
I am trying to add a long list of contact objects to a DL with DSMOD, but it fails with the error "dsmod failed:The parameter is incorrect" (Win2k8 DC) or "dsmod failed:unspecified error" (Win2k3 DC).

My command looks like this:
dsmod group "CN=Groupname,OU=Distribution Lists,OU=E-mail container,DC=London,DC=Companynavn,DC=Net" -addmbr "CN=customer@Customercompany.net,OU=Custom Recipients,OU=E-Mail Container,DC=London,DC=Company,DC=Net"

My admin account is in the 'Company' domain while the contact objects and the groups are in the London domain.
The DL is a universal group and I can't see why it doesn't work.

I have a rather long list of contacts to add to this group, so I'd rather not do it manually.
0
Comment
Question by:LPetersson
[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
  • 6
  • 5
11 Comments
 
LVL 13

Accepted Solution

by:
Felix Leven earned 250 total points
ID: 36494974
Try:
dsquery group "CN=Groupname,OU=Distribution Lists,OU=E-mail container,DC=London,DC=Companynavn,DC=Net" | dsmod group -addmbr  "CN=customer@Customercompany.net,OU=Custom Recipients,OU=E-Mail Container,DC=London,DC=Company,DC=Net"
0
 

Author Comment

by:LPetersson
ID: 36495009
Sadly that still fails with 'Unspecified error'
0
 

Author Comment

by:LPetersson
ID: 36495024
My command, and yours, dopes work with user objects, it only seems to be contact objects it doesn't work with.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 13

Expert Comment

by:Felix Leven
ID: 36495064
Sry:

you cannot do that for global groups in remote domain because it is not supported

Read:
http://www.experts-exchange.com/Software/Server_Software/File_Servers/Active_Directory/Q_26831068.html
0
 

Author Comment

by:LPetersson
ID: 36495122
As I wrote in my original question "DL is a universal group" not a global group, also both the group and the contacts are in the same domain.
0
 
LVL 13

Expert Comment

by:Felix Leven
ID: 36495249
yes, I can add contacts to whatever grouptype across domains 2003<->2008 using an enterprise admin user (using my example). can you create a user,contacs, groups in the other domain ?
0
 

Author Comment

by:LPetersson
ID: 36495330
Yes, it is the admin account which I normally use. and as I also wrote in my 2nd comment above, I can add user objects to the group, it is only contact objects, seemingly, which are a problem.
0
 
LVL 13

Expert Comment

by:Felix Leven
ID: 36495509
I try dsadd, but there is no option for contacts, when user has option -memberof

http://social.technet.microsoft.com/Forums/en-US/winserverDS/thread/5da36ea1-bce0-47f7-80c6-2f3672b5be38/
0
 

Author Comment

by:LPetersson
ID: 36495600
dsadd is for creating new contacts, these are contacts that already exist.

I also found that page and while it seems promising at first, unfortunately it doesn't solve the authors, or mine, problem.
0
 
LVL 13

Assisted Solution

by:Felix Leven
Felix Leven earned 250 total points
ID: 36498137
On 2008 R2 I also get the "dsmod failed:unspecified error" executing my suggested code, on 2003 everythings works fine. The last comment on the microsoft help for dsmod group states it is impossible to work with a contact on 2008 r2.  bug  ?
I could not find a workaround on 2008, but it must work on your older DC.

0
 

Author Comment

by:LPetersson
ID: 36501323
That is very peculiar, but yes, it works on my Win2K3 DC now. Slightly concerning that it doesn't work on Win2k8 though.

Many thanks.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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