Solved

Add users from one AD group to another AD group.

Posted on 2013-06-17
4
1,758 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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