Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dump user profiles to a text file

Status
Not open for further replies.

ecafracs

IS-IT--Management
Aug 21, 2002
93
PH
Help! I'm currently having a problem dumping user details to something like a text file. I've used the "net user /domain user.name > username.txt" command but the command won't work if the username has been configured with a space in between ( e.g. user name )("net user /domain user name > username.txt"). I really need to do this because I have lots of users (around 600) and I can't be looking into the user's details via user manager individually.

Any help is much appreciated! Thanks!!!
 
Hi,

try this command

net user /domain "user name" > username.txt

Or call this command from your login script

net user /domain %username% > %username%.txt
and copy the output files to central location

Hope this helps


Aslam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top