This is the query I am using (basically if "Photo" is empty):
(&(sAMAccountType=805306368)(!(photo=*))) which returns everyone in AD, not just users without photos.
I used the one below to return users without a manager and it worked perfectly:
(&(sAMAccountType=805306368)(!(manager=*)))
What am I doing wrong? Can my query be fixed?