Export List from User Manager for Domains (NT4)

TheLC

Junior Member
Jun 28, 2002
7
0
0
Does anyone know how I could export a list of users from NT 4's User Manager for Domains? I need to attach a batch file to every user that doesn't already have one (500 users), and since I've got no experience with NT Admin (don't ask me why they shoved this project in my lap) I don't know any better way than going through one-by-one. Suggestions?

TIA,
~ The LC
 

SoulAssassin

Diamond Member
Feb 1, 2001
6,135
2
0
net user /domain >textfile.txt will dump out all the user names to a text file but won't tell you if they have a logon script already. There is a way to do that, but I need to think about it for a minute....
 

TheLC

Junior Member
Jun 28, 2002
7
0
0
Thanks, that's a start....anyone know how to do the bit with login scripts?
 

IJump

Diamond Member
Feb 12, 2001
4,640
11
76
Are all of the users going to have a login script? If they are, you can update with the net user command.....

I believe the command would be:

net user username /scriptpath:login.bat

If you dump all of the user names to a text file, you could do something like:

for %%i in file.txt net user %%i /scriptpath:login.bat


That is from memory.... I can check the files at work tomorrow, I have done somthing similar to this using the net user command....



Or you could multiple select every one in the domain in user manager and set the login script for all of them at once. That might take a while depending on how many users you have......


If you had just a few people with different login scripts and you know who those people are, it might be easier to set everyone to the generic script then switch the "special" users back....
 

TheLC

Junior Member
Jun 28, 2002
7
0
0
I'd considered setting everyone to one script, and changing the few back, but the last sysop obviously didn't know what organization was: not only is there no list indicating who has what script, but the scipt users aren't even all put in the same groups (so I can't select a group and change them all at once either).
Anyway, I spent two hours doing it one user at a time yesterday, and hopefully it'll work. Thanks to everyone who responded ;)