There are numerous examples of using ADSI as well as my GrpMaint.exe to manage groups. Search for GrpMaint or just groups.

Are you looking to execute an admin script from a central console or have this execute as part of the logon script?
_________________________
Home page: http://www.kixhelp.com/hb/