Rhala
asked on
How to Query Active Directory for specific attribute
Dear all,
How I can know which users don’t have picture imported in active directory? Is there a command or shell or anything I can use??
Thanks
How I can know which users don’t have picture imported in active directory? Is there a command or shell or anything I can use??
Thanks
Hi,
Please find the option to query via DS Command:
To query users who doesn't have pictures in their User account.
To query users who have pictures in their User account.
Regards,
Prem
Please find the option to query via DS Command:
To query users who doesn't have pictures in their User account.
dsquery * -filter "&(ObjectCategory=User)(!thumbnailPhoto=*)" - Limit 0 -attr DisplayName
To query users who have pictures in their User account.
dsquery * -filter "&(ObjectCategory=User)(thumbnailPhoto=*)" - Limit 0 -attr DisplayName
Regards,
Prem
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Import-Module ActiveDirectory
Get-ADUser -Filter * -SearchBase "OU=Staff,DC=nwtraders,DC=
http://davehope.co.uk/Blog/find-accounts-without-a-thumbnail-photo/
http://social.technet.microsoft.com/Forums/windowsserver/en-US/f436cd38-8539-4883-903a-6f28c741e2c2/export-ad-users-thumbnailphoto-attributes-details-to-excel-spreadsheet?forum=winservergen