Adding contacts to DL using DSMOD

LPetersson
LPetersson used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior System and Databaseadministrator
Commented:
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"

Author

Commented:
Sadly that still fails with 'Unspecified error'

Author

Commented:
My command, and yours, dopes work with user objects, it only seems to be contact objects it doesn't work with.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Felix LevenSenior System and Databaseadministrator

Commented:
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

Author

Commented:
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.
Felix LevenSenior System and Databaseadministrator

Commented:
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 ?

Author

Commented:
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.
Felix LevenSenior System and Databaseadministrator

Commented:
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/

Author

Commented:
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.
Felix LevenSenior System and Databaseadministrator
Commented:
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.

Author

Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial