August 9th, 2014

PowerTip: Use PowerShell to Identify Users Without a Photo

Doctor Scripto
Scripter

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 }

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.