Isn't this something that LDIFE or CSVDE handles? Kinda like the old Reskit tool ADDUSERS? Or, are you asking to remove all groups from say a specific user, but keep the Account on the domain?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's