Solved

How to search for user list based on an attribute

Posted on 2014-07-24
1
263 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

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now