Solved

How can I download user profiles from NT?

Posted on 2004-10-04
9
136 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
9 Comments
 
LVL 95

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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
parental control on huwei HG658b 1 26
32bit v 64bit processes and impact on memory 7 71
User wants to log with Username or Email 4 56
LOGINSERVER and nltest /dsgetdc 3 41
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
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…

821 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