Solved

add group to another group

Posted on 2016-10-27
2
45 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Are external E-mails being sent to distribution groups? 6 41
PowerCLi Script Email and Object Count Issues 13 47
CSV file manipulation 6 26
Get processes with highest usage 2 21
Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
A brief introduction to what I consider to be the best editor for PowerShell.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

778 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