Solved

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

Posted on 2011-09-09
4
509 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
  • 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now