Solved

Add users from one AD group to another AD group.

Posted on 2013-06-17
4
1,590 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 21

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
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 process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

707 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

15 Experts available now in Live!

Get 1:1 Help Now