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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

dsquery user -samid * -limit 0 | dsget user -empid -samid
Joseph DalyCommented:
And in powershell using the quest cmdlets.

get-qaduser -sizelimit 0 -includedproperties employeeid | select-object samaccountname, employeeid
rdefinoAuthor Commented:
How can I search all members of a group. I have 600 users to search?

Joseph DalyCommented:
Try this.

Get-QADGroupMember GROUPNAME* | foreach {get-qaduser $_.samaccountname -includedproperties employeeid | select-object samaccountname, employeeid}

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.