Remove group membership from multiple domain

The Powershell cmdlet Remove-ADGroupMember have a problem to remove group membership in this case : user account from Domain1.domain.local group from Domain2.domain.local If you run the command : Remove-ADGroupMember -Identity “CN=GroupName,OU=Groups,DC=Domain2,DC=domain,DC=local” -Members “CN=UserName,OU=Users,DC=Domain1,DC=domain,DC=local” -confirm:$false -server “dc01.Domain1.domain.local” You will have the