Problem: You have a group in Windows Active Directory and you want to create a new group with same member like the existing one

Solution:

Get-QADGroup <original group> | Get-QADGroupmembership | %{add-QADGroupmember -identity <new group> -member $_}

Prerequisites: member server in Active Directory domain, Quest Powershell tools

Tips:
– Use Run As to run Powershell under another identity in case your account does not have the right permissions.
– Use Connect-QADService to connect to a different domain before you run this command.

Leave a Reply

Your email address will not be published. Required fields are marked *