• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

Lising domain users and computers from command line

Hi, A long time ago in a land not so far away I ran a command from the command line to list all 200 users in our domain. Well now we have 250 users and I want to re-run the command but I can not recall what it was.  I think it was one of the net commands and the output looked like this...

njones,Jones, Neil,,njones,,,,
psmith,Smith, Paul,,pdmith,,,,
pdoe,Doe, Peter,,pdoe,,,,

...any idea what command line would produce that kind of output (username and real name)?

Also I'm looking for a command line that will list all computers on out domain. Thanks!
0
veedar
Asked:
veedar
  • 2
2 Solutions
 
TheCleanerCommented:
if it was a net command it was probably net user /domain

Why don't you use csvde or ADUC queries to do this?
0
 
Kini pradeepCommented:
this might help you,
http://support.microsoft.com/default.aspx?scid=kb;en-us;322684

you could also take a ldifde dump of the domain.
0
 
veedarAuthor Commented:
TheCleaner,  net user /domain just lists username, I need full name as well. I never heard of csvde I'll look into it.
I can not figure out how to export what I need from ADUC.

kprad, Thanks for the link. I discovered dsquery today. I need to look at it more to see if it can do what I need.
0
 
veedarAuthor Commented:
Thanks guys..I got what I need....btw another good tool for this is DumpSec
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now