Solved

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

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

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
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 …

749 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