Announcement

Collapse
No announcement yet.

List of users in AD with no picture

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • List of users in AD with no picture

    Hi,
    I want to run a query to show all missing pictures of users in AD (2012)
    What is the best practice?
    Thanks a lot in advance

  • #2
    Re: List of users in AD with no picture

    Are you using the thumbnailPhoto property or another one to hold the picture?

    What OS is on the DC

    Easiest solution would be a powershell query on the field, then pipe to a filter of "null" or some other suitable value (sorry, can't find example easily)
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: List of users in AD with no picture

      Can try 'Active Directory Users And Computers' / new Custom Query... Or, 'Active Directory Administrative Center' / Search...

      Find the user objects where 'thumbnailphoto' property is empty:
      Code:
      (&(objectcategory=person)(objectclass=user)(!thumbnailphoto=*))

      /Rems

      This posting is provided "AS IS" with no warranties, and confers no rights.

      __________________

      ** Remember to give credit where credit's due **
      and leave Reputation Points for meaningful posts

      Comment


      • #4
        Re: List of users in AD with no picture

        Hi...

        Something along these lines should work for you (assuming you are using the thumbnailPhoto attribute to store it...):

        Code:
        get-aduser -filter { objectClass -eq "User" -and Enabled -eq "True" -and thumbnailPhoto -eq "NULL" } -Properties Name,thumbnailPhoto | select name,thumbnailPhoto

        If this doesnt suit your needs, its a good place to start.
        Rules of life:
        1. Never do anything that requires thinking after 2:30 PM
        2. Simplicity is godliness
        3. Scale with extreme prejudice


        I occasionally post using a savantphone, so please don't laugh too hard at the typos...

        Comment


        • #5
          Re: List of users in AD with no picture

          You just wanted to see the list or you also want to add pics/thumbnail for those users who don't have pics in their AD Account ?

          Comment


          • #6
            Re: List of users in AD with no picture

            Have a look at this tool I recommended in another thread: http://forums.petri.com/showpost.php...92&postcount=3

            Comment

            Working...
            X