Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

add group to another group

Posted on 2016-10-27
2
Medium Priority
?
133 Views
Last Modified: 2016-10-27
How can I add one group to another group?  I am not just looking to copy the members but actually make the group name part of another group?  

Sort of like this but it didn't do anything.

Add-ADGroupMember -Identity group1 -Members group2
0
Comment
Question by:Roccat
[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
2 Comments
 
LVL 3

Accepted Solution

by:
Spencer Scherer earned 2000 total points
ID: 41862798
Firstly, if you didn't already know, -identity will be the target group to receive the other groups members,  So it may not give you an error, did you check the other groups membership to see if it worked in reverse of what you planned?  If it did not run, what was the error you received?  The code itself looks like it should work otherwise, as long as you have the group names properly entered.
0
 

Author Closing Comment

by:Roccat
ID: 41862879
Yes you are right, it does work. Not sure what I was looking at earlier. Thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

661 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