I would recommend the "dsconfigad" command. Taking a look at the man page for that command, it appears you should be able to perform this task in the following format:
dsconfigad -group "group1@domain.com,group2@domain.com"
I have not tested this so please take a look at the man page for dsconfigad and try it on a test computer. The command should be able to be pushed via ARD or casper remote/policy. I believe it requires root privileges.
Okay, testing with ARD appears to reflect a positive result with your command. Thank you. It has, however, had no effect on any user that is within the groups added. This is apparently a known AD bug.
So, now I'm stuck from the AD side of things, it seems, and that brings me back to the possibility of using a command that makes the currently logged in user a member of the local admin group. Is that possible?
Mike
There's several threads on this board that explain how to add a local user to the admin group (https://jamfnation.jamfsoftware.com/discussion.html?id=6449 has some examples).
This is actually preferable in a lot of cases since the "Allow Administration By" attribute generally has no effect when the computer can't reach the DC.
Thanks a lot bajones. My searching did not yield links like that one. Guess my terms were not great.
Mike