Solved

How to search for user list based on an attribute

Posted on 2014-07-24
1
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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