PowerTip: Use PowerShell to Identify Users Without a Photo

PowerTip: Use PowerShell to Identify Users Without a Photo

  • Comments 3
  • Likes

Summary: List all users who do not have a photo assigned in Active Directory.

Hey, Scripting Guy! Question Is there a simple way that I can use Windows PowerShell to identify users who do not have a photo assigned in Active Directory?

Hey, Scripting Guy! Answer Target the ThumbnailPhoto property, and filter the users for Null:

GET-ADUSER –filter * -properties ThumbnailPhoto | Where { $_.ThumbnailPhoto –eq $NULL }

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • With effeciency in mind:
    Get-ADUser -Properties ThumbnailPhoto -filter {ThumbnailPhoto -like '*'}

  • Well actually my example collected the ones that HAVE the ThumbnailPhoto. Here's the ones that haven't:
    Get-ADUser -Properties ThumbnailPhoto -filter {ThumbnailPhoto -notlike '*'}