I want to rollout a command to all domain users bar one, something along the lines of if member of but if user = don't run/shell

Would anyone be able to assist?

Thanks