Solved

How can I download user profiles from NT?

Posted on 2004-10-04
9
138 Views
Last Modified: 2013-12-28
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.
0
Comment
Question by:wimzieguy
[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
9 Comments
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 12224153
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.
0
 

Author Comment

by:wimzieguy
ID: 12226135
Usrstat.exe will only give me last logon's. I need to download ALL the users currently configured under my NT domain.
0
 
LVL 12

Expert Comment

by:alandc
ID: 12250528
Domain accounts do not contain First/Last Name fields.  They contain only FULL NAME fields.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 12

Expert Comment

by:alandc
ID: 12250635
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.)

ADDUSERS /d:u C:\USERS.TXT YOURDOMAINNAME

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

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

0
 
LVL 9

Expert Comment

by:cooledit
ID: 12334706
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
0
 
LVL 12

Expert Comment

by:alandc
ID: 12338929
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.
0
 

Author Comment

by:wimzieguy
ID: 12372304
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.
0
 
LVL 12

Accepted Solution

by:
alandc earned 125 total points
ID: 12376993
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:
http://www.ss64.com/nt/addusers.html
0
 

Author Comment

by:wimzieguy
ID: 12379924
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
GOTO:EOF

:ParseUsers
FOR %%? IN (%*) DO CALL :ChkAcc %%?
GOTO:EOF

:ChkAcc
NET USER %1 /DOMAIN | FIND "Account active               Yes" >NUL
IF ERRORLEVEL 1 ECHO.%1
GOTO:EOF
0

Featured Post

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

624 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