Solved

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

Posted on 2011-09-09
4
514 Views
Last Modified: 2012-05-12
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?
0
Comment
Question by:garryshape
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 500 total points
ID: 36512286
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

http://www.joeware.net/freetools/tools/adfind/index.htm

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.

Thanks

Mike
0
 

Author Comment

by:garryshape
ID: 36512301
Oh wow forgot about that site.
I thik it's both thumbnailphoto and jpegphoto, do you know what the difference really is?
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 36512351
Not sure the difference exchange is using thumbnailphoto   http://blogs.technet.com/b/exchange/archive/2010/03/10/3409495.aspx
0
 

Author Closing Comment

by:garryshape
ID: 36513748
Awesome thanks a lot
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question