Results 1 to 7 of 7

Thread: How to Export users from the Domain Users group into another Sec G

  1. #1
    Join Date
    Jul 2004
    Posts
    153

    How to Export users from the Domain Users group into another Sec G

    Can anyone tell me how to get an export of the domain users group and after that import those users into another Security group? Thanks for any help.

  2. #2
    Join Date
    Dec 2005
    Posts
    945

    Re: How to Export users from the Domain Users group into another Sec G

    You can try to add a User to a Group, but Only if that User is a Member of the IT Department, just follow the steps here - http://blogs.technet.com/b/heyscript...epartment.aspx

  3. #3
    Join Date
    Nov 2005
    Posts
    709
    Check the below script using the DSGET and DSMOD:

    Code:
    Set oGroup1 =
    GetObject("LDAP://cn=Group1,ou=Groups,dc=change-my-name,dc=local")
    Set oGroup2 =
    GetObject("LDAP://cn=Group2,ou=Groups,dc=change-my-name,dc=local")
    
    For Each oUser in oGroup1.Members
    oGroup2.Add(oUser.ADsPath)
    Next

  4. #4
    Join Date
    Jul 2004
    Posts
    153

    Re: How to Export users from the Domain Users group into another S

    I have tried to use the DSGET and DSMOD, but that is giving me some wrong info. I just want to add users of Domain Users Groups into another group. The only error with Domain Users group, if using another group like Domain Admin, will work. Does anyone have any other solution. Thanks.

  5. #5
    Join Date
    Aug 2006
    Posts
    84

    Re: How to Export users from the Domain Users group into another S

    Actually the script that is given will not work with Domain Users Groups, but with other Groups, it will work properly.

  6. #6
    Join Date
    Nov 2011
    Posts
    1

    Re: How to Export users from the Domain Users group into another Sec G

    Hey i would like to bump this article.

    I hopeless when it comes to VBscript so please be patient.

    I want to copy the users from Domain users into another group. I've run this script and it seems to copy about 10 or so accounts but that's it. Anyone know why this might be the case and how i can get round it?

    Thanks

    p.s. AD is server 2003

  7. #7
    Join Date
    Dec 2007
    Posts
    2,291

    Re: How to Export users from the Domain Users group into another Sec G

    Quote Originally Posted by section_32 View Post
    Hey i would like to bump this article.

    I hopeless when it comes to VBscript so please be patient.

    I want to copy the users from Domain users into another group. I've run this script and it seems to copy about 10 or so accounts but that's it. Anyone know why this might be the case and how i can get round it?

    p.s. AD is server 2003
    You can try to Install Windows Server Migration Tools by following procedures in the Windows Server Migration Tools Installation, Access and Removal guide on the Microsoft Web site. Verify that the destination server can resolve the names of domain users who are members of the local group during the import operation. If source and destination servers are in different domains, the destination server must be able to contact a global catalog server for the forest in which the source domain user accounts are located.

Similar Threads

  1. Adding Users to Local Security Group from other Domain
    By duke2555 in forum Active Directory
    Replies: 2
    Last Post: 30-08-2011, 12:36 AM
  2. adding domain users automatically to the local admin group
    By The Shadow in forum Active Directory
    Replies: 3
    Last Post: 07-06-2011, 10:57 PM
  3. export users with password from domain
    By networkmisr in forum Active Directory
    Replies: 2
    Last Post: 09-05-2009, 07:22 PM
  4. Replies: 1
    Last Post: 18-05-2006, 01:31 AM
  5. Replies: 1
    Last Post: 10-06-2005, 07:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,848,174.92789 seconds with 17 queries