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.
Who is Participating?
Aland CoonsConnect With a Mentor Systems 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:
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.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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:
Domain accounts do not contain First/Last Name fields.  They contain only FULL NAME fields.
Aland CoonsSystems EngineerCommented:
Use ADDUSERS.exe from NT 4 Resource Kit


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.
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.

All Courses

From novice to tech pro — start learning today.