Solved

How to search for user list based on an attribute

Posted on 2014-07-24
1
265 Views
Last Modified: 2014-07-24
I need to pull a list of all user in AD and show the "exsentionattribute4" so I can sorted it in excel.

How can this be done?
0
Comment
Question by:rdefino
1 Comment
 
LVL 4

Accepted Solution

by:
SEHC earned 250 total points
ID: 40216851
Run this command in AD powershell.  Don't for get to change the OU=,DC=,DC=com to your domain.


get-aduser -searchbase “OU=FOLDER IF YOU WANT TO SEARCH BY THAT,DC=YOURDOMAIN,DC=com”  -Filter * -properties extensionAttribute4, displayName |  ? { $_.sAMAccountName } | select sAMAccountName, displayName, extensionAttribute4 | export-csv "C:\extensionAttribute4.csv"
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article runs through the process of deploying a single EXE application selectively to a group of user.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question