I haven't directly investigated the issues you're having so a solution may well be available as opposed to the workaround outlined below -
 
for /f "tokens=*" %m in ('dsget group "CN=domain admins,cn=users,dc=mset,dc=local" -members') do @dsget group "cn=other admins,dc=mset,dc=local" -members | findstr /i %m >nul || @echo add your dsstuff.exe here - %m
 
(if used in a batch file, replace all occurrences of %m with %%m)

--
Dean Wells
MSEtechnology
* Email: dwells@msetechnology.com

http://msetechnology.com

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Abagnale
Sent: Friday, February 10, 2006 8:12 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Merging Multiple AD Groups

Hi Mike,
I have checked the archives and I can't find your post.
 
I don't suppose you have the solution to hand.....
 
thanks
 
Frank

"Thommes, Michael M." <[EMAIL PROTECTED]> wrote:
Hi Frank,
    Ignore my previous post; no enough sleep I guess.  I posted a solution to this newsgroup on 7/3/2005.  Check the archives.
 
Mike Thommes
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Abagnale
Sent: Thursday, February 09, 2006 3:19 PM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] Merging Multiple AD Groups
 
dsget group "CN=USNY_HR_RO,OU=GGroups,dc=Intara,dc=com" -members | dsmod group "CN=USHR_PROJSAP_RO,ou=GGroups,dc=Intara,dc=com" -addmbr -c
 
The fact that some users are in both Group 1 & 2 wouldn't cause a problem would it?
 
cheers Al
Al Mulnick <[EMAIL PROTECTED]> wrote:
Hmm.. the -c should have worked.  Wonder why it didn't in your case? Can you post that syntax that you used?


 
On 2/9/06, Frank Abagnale <[EMAIL PROTECTED]> wrote:
dsmod failed:CN=USHR_PROJSAP_RO,ou=GGroups,dc=Intara,dc=com:T he specified account name is already a member of the local group
 
Dan - I have also tried the -c switch to no avail.
 
thanks

Al Mulnick <[EMAIL PROTECTED]> wrote:
Can you give us an example of the error you're getting?
 
Al

 
On 2/9/06, Frank Abagnale <[EMAIL PROTECTED] > wrote:
I have two existing groups:
 
1. USAT_HR_RO (24 members)
2. USNY_HR_RO (45 members)
 
I created a new group to merge members of both groups above into the new group.
 
3. USHR_PROJSAP_RO (0 members)
 
Some users are members of groups 1 & 2.
 
I want to copy the users from groups 1 & 2 into the new group 3 so this would contain 69 members.
 
I tried the following command 1st....
 
dsget group "CN=USAT_HR_RO,OU=GGroups,dc=Intara,dc=com" -members | dsmod group "CN=USHR_PROJSAP_RO,ou=GGroups,dc=Intara,dc=com" -addmbr
 
then I tried the following command
 
dsget group "CN=USNY_HR_RO,OU=GGroups,dc=Intara,dc=com" -members | dsmod group "CN=USHR_PROJSAP_RO,ou=GGroups,dc=Intara,dc=com" -addmbr
 
but this does not work...does this make sense?


Al Mulnick <[EMAIL PROTECTED]> wrote:
complains? Can you give more detail?
On 2/9/06, Frank Abagnale <[EMAIL PROTECTED] > wrote:
 
I have two global groups which I need to merge the users in both into one new group. What is the best way to do this, I have used DSGET & DSMOD but it complains about e xisting users
any ideas?

Yahoo! Mail - Helps protect you from nasty viruses.
 
 

Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
 



Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
 
 

Relax. Yahoo! Mail virus scanning helps detect nasty viruses!


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Reply via email to