• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

Get a list of all users who don't have an AD photo

I've been using a GUI program by DoveStone for conveniently uploading photos into AD for different users. SO far so good, aside from the file-size & dimension limitations.

Anyway I am submitting assistance here to someone who can help me, figure out a way, to Export a list of all users who do NOT have a photo associated with their AD account.

Is something like that at all possible? PowerShell, VbScript?
  • 2
  • 2
1 Solution
Mike KlineCommented:
Do you know if it is using  jpegPhoto or the thumbnailPhoto attribute  

I'll assume thumbnailphoto

I like adfind but the other methods work too


Users with a photo

adfind -default -f "&(objectcategory=person)(objectclass=user)(thumbnailphoto=*)" samacccountname

Users without

adfind -default -f "&(objectcategory=person)(objectclass=user)(!thumbnailphoto=*)" samacccountname

See if that works for you.


garryshapeAuthor Commented:
Oh wow forgot about that site.
I thik it's both thumbnailphoto and jpegphoto, do you know what the difference really is?
Mike KlineCommented:
Not sure the difference exchange is using thumbnailphoto   http://blogs.technet.com/b/exchange/archive/2010/03/10/3409495.aspx
garryshapeAuthor Commented:
Awesome thanks a lot
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now