Migrating Members from Old group to New group in Active directory
Group Attribute Editor – Collect DistinguishedName Value for Old and New Group
Open PowerShell in Directory Server
Import-Module Activedirectory
$oldgroup = Get-ADGroup "CN=OLD_Group,OU=02 Groups,DC=Cloudid,DC=biz"
$newgroup = Get-ADGroup "CN=New_Group,OU=02 Groups,DC=Cloudid,DC=biz"
To Test – (-Whatif)
Get-ADGroupMember $oldgroup | foreach{Add-ADGroupMember $newgroup -Members $_.distinguishedName -WhatIf}
Remove –Whatif to Execute it.
To Execute –
Get-ADGroupMember $oldgroup | foreach{Add-ADGroupMember $newgroup -Members $_.distinguishedName}
You can see members migrated to new group