Solved

add group to another group

Posted on 2016-10-27
2
21 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
2 Comments
 
LVL 3

Accepted Solution

by:
Spencer Scherer earned 500 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
Synchronize a new Active Directory domain with an existing Office 365 tenant
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

18 Experts available now in Live!

Get 1:1 Help Now