Remove user from Local Administrators group

(imported topic written by Rominal91)

It seemed like this would be an easy request, but I am having trouble finding the answer. I want remove any local user from the Administrators group on a machine. Only Domain Admins and one other group would remain on the machine. What is the easiest way to accomplished this with Bigfix?

(imported comment written by SystemAdmin)

Task relevance: (exists member whose (it as string as lowercase contains “\username”)of local group “administrators”)

Action: dos net localgroup administrators "username@domain.com" /delete