Solved

Add users from one AD group to another AD group.

Posted on 2013-06-17
4
1,636 Views
Last Modified: 2013-06-17
Hi.

Is there an easy way to add users to an AD group by using the comtent of another AD group?

Br
Kenneth
0
Comment
Question by:QC20N
4 Comments
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39252522
you can use powershell  script for transfer user from one group to another


Powershell code


Import-Module ActiveDirectory
$Group_BUsers = Get-ADGroup Group_B -properties members | Select-Object members | % { $_.Members}
$Group_CUsers = Get-ADGroup Group_C -properties members | Select-Object members | % { $_.Members}
Get-ADGroup Group_A -properties members | Select-Object members | % { $_.Members} | % {
    if(!($Group_BUsers -contains $_) -and !($Group_CUsers -contains $_))
    {
        Add-ADGroupMember -Identity Group_B -Member $_
        $_
    }
    }



http://smulpuru.wordpress.com/2013/03/02/copy-ad-membersusers-from-one-group-to-another-using-powershell/
0
 
LVL 4

Expert Comment

by:mumbaiexperts
ID: 39252630
0
 
LVL 5

Accepted Solution

by:
MisterTwelve earned 500 total points
ID: 39252661
In AD users and computers console, create new query with this definitions:

Custom Search
Field
User
MemberOf
Condition = Is Exactly
Value = Distinguieshed Name of Group

After you have list of users members of this group, only need to select all, right click with mouse and Select option Add to group.

This is the simple way.
0
 
LVL 9

Expert Comment

by:VirastaR
ID: 39252666
Hi,

What AD Environement you have 2003/2008/2012???

Answer will vary depends on your environment details.

However check this

http://www.petri.co.il/forums/showthread.php?t=50826

Hope that helps :)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Do you have users whose passwords are expiring and they are constantly calling you?  Well I sure did and needed a way to put an end to this.  We have a lot of remote users which would not be notified that their passwords were expiring since they wer…
Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now