Hmmmm. Last I looked, admod didn't have an -addmbr option... I guess someone
could have snuck it in when I wasn't looking though...

;o)

Just messing with you. I assume you mean dsmod everywhere you say admod
below?
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thommes, Michael M.
Sent: Saturday, July 02, 2005 8:41 AM
To: [email protected]
Subject: RE: [ActiveDir] using adfind/admod or dsquery/dsmod to copy members
in a group

One wrinkle to this task..."admod group <group DN> -addmbr" generates an
error if a user in the source group already exists in the target group.
The "-c" option doesn't help.  It's too bad that admod does not have a
switch to ignore duplicates.  Any thoughts on getting around this?  TIA!

Mike Thommes 

-----Original Message-----
From: Thommes, Michael M. 
Sent: Thursday, June 23, 2005 8:18 PM
To: '[email protected]'
Subject: RE: [ActiveDir] using adfind/admod or dsquery/dsmod to copy members
in a group

Charlie,
    This worked great!  Thanks!  (And thanks to the others for the other
suggestions!)

Mike Thommes

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charlie Kaiser
Sent: Thursday, June 23, 2005 5:54 PM
To: [email protected]
Subject: RE: [ActiveDir] using adfind/admod or dsquery/dsmod to copy members
in a group

I couldn't get this to work with adfind/admod, but I was able to make it
work with dsget/dsmod. Here's the syntax:

dsget group "<DN of source group>" -members | dsmod group "<DN of
destination group>" -addmbr

This took all the members of the source DL and added them to the destination
DL...

**********************
Charlie Kaiser
MCSE, CCNA
Systems Engineer
Essex Credit / Brickwalk
510 595 5083
**********************
 

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Thommes, 
> Michael M.
> Sent: Thursday, June 23, 2005 2:51 PM
> To: [email protected]
> Subject: RE: [ActiveDir] using adfind/admod or dsquery/dsmod to copy 
> members in a group
> 
> Yep!
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Charlie 
> Kaiser
> Sent: Thursday, June 23, 2005 4:47 PM
> To: [email protected]
> Subject: RE: [ActiveDir] using adfind/admod or dsquery/dsmod to copy 
> members in a group
> 
> Does the new DL already exist?
> 
> **********************
> Charlie Kaiser
> MCSE, CCNA
> Systems Engineer
> Essex Credit / Brickwalk
> 510 595 5083
> **********************
>  
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Thommes, 
> > Michael M.
> > Sent: Thursday, June 23, 2005 1:48 PM
> > To: [email protected]
> > Subject: [ActiveDir] using adfind/admod or dsquery/dsmod to copy 
> > members in a group
> > 
> > Hi,
> >     Task - to copy members of an AD email distribution group to 
> > another email distribution group
> > 
> > I have looked at both adfind and dsquery and while I can
> output all of
> > the properties of the source email distribution group (including 
> > members), I can't see how to restrict the output just to members in 
> > order to pipe them to another email distribution group.
> > 
> > Any thoughts?
> > 
> > TIA,
> > Mike Thommes
> > List info   : http://www.activedir.org/List.aspx
> > List FAQ    : http://www.activedir.org/ListFAQ.aspx
> > List archive: 
> > http://www.mail-archive.com/activedir%40mail.activedir.org/
> > 
> List info   : http://www.activedir.org/List.aspx
> List FAQ    : http://www.activedir.org/ListFAQ.aspx
> List archive:
> http://www.mail-archive.com/activedir%40mail.activedir.org/
> 
> 
> List info   : http://www.activedir.org/List.aspx
> List FAQ    : http://www.activedir.org/ListFAQ.aspx
> List archive: 
> http://www.mail-archive.com/activedir%40mail.activedir.org/
> 
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/


List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to