Oops, cut and paste error. This is the correct syntax:
(&(objectClass=user)(objectCategory=person)(homeMDB=*)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!userPrincipalName=q*)(!userPrincipleName=x*))