Adding and removing users from groups is a standard administrative task for AD ## remove users from groups
$ou = "OU=BlogTests,DC=Manticore,DC=org"
"`nMicrosoft"
$name = "UserA"
Get-ADUser -Identity $name -Properties * |
Remove-ADPrincipalGroupMembership… Read the full text.