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

How can I download user profiles from NT?

I have to download user names (first and last) from NT user domain. Is there is a way I can download it from Windows NT?

Please advise.
1 Solution
Lee W, MVPTechnology and Business Process AdvisorCommented:
Windows NT Resource kit - usrstat tool should do this.  Gives other info too, but you should be able to yank just first and last names with a script if that's all you want.
wimzieguyAuthor Commented:
Usrstat.exe will only give me last logon's. I need to download ALL the users currently configured under my NT domain.
Aland CoonsSystems EngineerCommented:
Domain accounts do not contain First/Last Name fields.  They contain only FULL NAME fields.
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Aland CoonsSystems EngineerCommented:
Use ADDUSERS.exe from NT 4 Resource Kit

See: http://www.ss64.com/nt/addusers.html

To dump users to a file (doesn't include passwords so no security is compromised.)


Domain accounts do not contain First or Last Name fields.  But this dump will include these field

User Name,Full name, Password (always blank on EXPORT), Description, HomeDrive, Homepath, Profile, Script

jimmye,James Edward Phillip II,,,,,,
alexd,Alex Denuur,,,E:\,E:\users\alexd,,
ronj,Ron Jarook,ChangeThis,,E:\,E:\users\ronj,,
sarahs,Sarah Smith,,,,,,

hi, there

in User account you can export them as a cvs, xls file.

You can create user + groups in a xls. spreadsheet and import it
Aland CoonsSystems EngineerCommented:
Yes, that would work, too.

However the answer to the question is ... no.

The way we accomplished this at the last site I worked at was to download exchange mailboxes into one database, download the domain logons into another database and then match them up.  Unfortunately while this DID give us a LAST and FIRST name fields it also resulted in a lot of errors and mismatches.  Users without mailboxes and mailboxes without user logon/owners.
wimzieguyAuthor Commented:
I can now download user information using the following commad:

addusers \\computer_name /d userlist.txt

But this command downloads all the accounts, groups, local account info and also disabled accounts. All I want is the user download of ONLY active accounts. Is there is a way to accomplish this task?

Please advise.
Aland CoonsSystems EngineerCommented:
No.  That option is not available with that tool.   Nor have I found a tool that could do that for me.

Full Details of ADDUSERS command options:
wimzieguyAuthor Commented:
Hi Guys,

I was able to doload all disabled accounts using the following script:

FOR /F "skip=4 tokens=*" %%A IN ('NET USER /DOMAIN ^| FIND /V "The command completed successfully"') DO CALL :ParseUsers %%A

FOR %%? IN (%*) DO CALL :ChkAcc %%?

NET USER %1 /DOMAIN | FIND "Account active               Yes" >NUL
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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