Link to home
Start Free TrialLog in
Avatar of DrivelFree
DrivelFree

asked on

PowerShell: Need Assistance in Querying Active Directory Attribute

Windows Server 2008 R2
Lync Server 2010

Hey Experts, I'm hoping you can help me out.  I attempted to compile a short script to query a specific attribute in all AD user objects within a designated Lync Server OU.  I simply want to query the thumbnailPhoto attribute in each of these user objects and if possible, parse the data to CSV file, but only from the accounts that have an existing thumbnail.

Based on information I found, I attempted to accomplish this by using a Get-QADuser cmdlet, however, when I executed the command, PowerShell did not recognize the cmdlet.

Any help would be appreciated.
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

You are using QADuser which is part of the Quest AD cmdlets.  You can download those for free

http://www.quest.com/powershell/activeroles-server.aspx

Here is an example I helped with using adfind (looking for thumbnailphoto)

https://www.experts-exchange.com/questions/27300340/Get-a-list-of-all-users-who-don't-have-an-AD-photo.html

Thanks

Mike
Avatar of DrivelFree
DrivelFree

ASKER

Thanks for the quick response, Mike.  Unfortunately, I'm in a secured facility on a production server and can't download any third party applications.

There has to be a way to accomplish utlizing the AD module through PowerShell.
ASKER CERTIFIED SOLUTION
Avatar of Brent Challis
Brent Challis
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial