Solved

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

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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 …

860 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