Link to home
Start Free TrialLog in
Avatar of rdefino
rdefinoFlag for United States of America

asked on

Need scipt to search a group of memebers for a attribute "employeeID"

So I have 600 users that I need to get there employeeID for. I figured I could put the users in a group and run a script against that group to output their employeeID's. Which is an attribute under ADSIedit.

Anyone have a script for this?
Avatar of Joseph Daly
Joseph Daly
Flag of United States of America image

Theres alot of different ways of doing this. One using DS series of tools

dsquery user -samid * -limit 0 | dsget user -empid -samid
And in powershell using the quest cmdlets.
http://www.quest.com/powershell/activeroles-server.aspx

get-qaduser -sizelimit 0 -includedproperties employeeid | select-object samaccountname, employeeid
Avatar of rdefino

ASKER

How can I search all members of a group. I have 600 users to search?

thanks
ASKER CERTIFIED SOLUTION
Avatar of Joseph Daly
Joseph Daly
Flag of United States of America 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