Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to get AD User attributes in Windows 2003

Posted on 2014-08-06
Medium Priority
Last Modified: 2014-08-06
Hi Experts,

How can I get all of attributes for an AD user?

Thanks you for your help in advance.

Question by:EnjoyNet
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40244341
Are you trying to do this from a server 2003 or is this a server 2003 domain? A little more info would be helpful. If you are on a windows 7 pc then you can run this powershell

get-aduser (username) -properties *

and it will return all of their info

Accepted Solution

Kevin Stanush earned 1200 total points
ID: 40244548
Another command:

ldifde -d "CN=user,CN=container,DC=xxx,DC=yyy" -f user.txt
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40244580
if you want to export the data from the powershell above use this

$username = PutUsernameHere
get-aduser $username -properties * | Out-File C:\$username.txt

Open in new window

it will export the info to a text file with their username as name also
LVL 40

Expert Comment

ID: 40244590
I would suggest Quest ActiveRoles Management Shell for Windows 2003 Domain..

Install Quest ActiveRoles Management Shell on any COMPUTER which is connected to domain. Please refer the link for installation files.

Open ActiveRoles Management Shell for Active Directory console..

Start | All Programs | Quest Software | ActiveRoles Management Shell for Active Directory

Run the following command to list all attributes of UserA
Get-QADUser UserA -all | FL *

Open in new window

Run the following command to export all attributes of UserA to a csv file..
Get-QADUser UserA -all | Export-Csv C:\report.csv -nti

Open in new window

But if you can't use the Quest tool then you need to use CSVDE, LDIFDE or VBscripts

Ref :

Author Closing Comment

ID: 40244659
Thanks to all.

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

579 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