dsget group "CN=BLAH,OU=Sites,OU=Security Groups,DC=mydomain,DC=com" -members |
Is what I know will work and allow me to pull all my users that are a part of group BLAH
But now lets pretend if they are a member of group Blah I want to keep them in Blah but also remove them from the group TEST and add then add them to another group called lets say BOB
So XUser is a member currently of BLAH and TEST Groups
I want to remove XUser from TEST and then add them to group BOB so the end result would be
XUser is a member of BLAH and BOB
What would be my dsmod command after the dsget <condensed> | command (pretending that the new security group is in the same OU as BLAH)?