UPDATE : thanks to some anonymous commenters, i have corrected my example in this post. it seems i left off the trailing %a in the for loop! oops. fixed now. i was visiting up in roanoke extolling about the boundless possibilities with command shells, scripting, etc to a near liability. in other words, i bored them nearly to death. :) to my surprise, it stuck. i’ve been exchanging conversation with one of the site admins and ran across this bug while running through a sample scenario on listing members from one group and adding them to another. typically, you could do this quite easily with the dsquery tool set. it looks something like this: dsquery group -name "myGroup" | dsget group -members | dsmod group "cn=myNewGroup,ou=etc,dc=etc,dc=etc" -addmbr –c so what are we doing here? dsquery group –name “myGroup” – retrieves the dn of the group dsget group –members – retrieves the membership list (dn) of the group passed through the pipe dsmod group
notes, ramblings, contemplations, transmutations, and otherwise ... on management and directory miscellanea.