Benutzer einer Gruppe kopieren
Get-ADGroupMember “GruppeA” | Get-ADUser | ForEach-Object {Add-ADGroupMember -Identity “GruppeB” -Members $_}
$Source_Group = “CN=Domänen-Admins,CN=Users,DC=NDSEDV,DC=DE”
$Destination_Group = “CN=DomAdmins,CN=Users,DC=NDSEDV,DC=DE”
$Target = Get-ADGroupMember $Source_Group
foreach ($Person in $Target) {
add-ADGroupMember -identity $Destination_Group -members $Person.distinguishedName
}