Solved

How can I download user profiles from NT?

Posted on 2004-10-04
9
137 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

752 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