Discussion Locked

Can you script user account creation

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have to establish accounts for our users on an number of different platforms and application systems. I have developed a number of scripts to accomplish this task but I am having diffiulty with our win nt/2000 servers. I would like to be able to create a user account based upon a particular account model defined to our NT/2000 servers. When I select a particular account as the model for the new account, I would like to automaticaly add the new account to the global groups assigned the model. In usermgr I can accomplish this task using the copy function.

In my batch script I currently use the "NET USER" command to create the basic account. I currently have to manually add this new account to to required global groups. Can anyone provide a solution that would fully automate this process, add the new user account and register the new account in the groups currently assigned the model.

Thanks

John s.

5 replies

by xpertdragon

John:

Below is TechRepublics recent article that was sent to me through the TechRepublic newsletter "Windows NT Tips". I will cut n paste it for you, along with the URL at the bottom. I hope this is what you are referring to, and helps you out. Good Luck!

Paul M. Chavez

-------------------------------------------

BATCH USER CREATION
Administrators usually create user accounts with the User Manager
utility. The whole process is easy and straightforward, and if you only
have to create a few accounts, it's also fast. However, using User
Manager isn't an ideal solution when you have to create several hundred
or several thousand accounts. In such cases, you won't go far with User
Manager; instead, you'll want to automate the creation of user
accounts. One utility you can use to create lots of user accounts quickly is the
command-line tool Addusers.exe from the Windows NT Resource Kit. This
utility uses a comma-delimited text file to create or delete user
accounts, which is ideal if all your users are in an Excel spreadsheet. To create a user account, run the utility with addusers /c filename,
where filename is the name of the file that includes the necessary
information about the users you want to create. Such a file will look
something like this: [User]
johnT,John Time,password,Description,e:\,e:\users\johnt,,
albertE,Albert Einstein,password,Description,e:\,e:\users\alberte,,
[Global]
timersTeam,Time,johnT
researchTeam,Researchers,albertE You can also export all user accounts and groups to a file and then
import this file on some other computer. For more information and detailed syntax, go to the online Help for
Addusers and in the Knowledge Base article Q199878.
http://click.online.com/Click?q=1b-wAnhI3NTz07O9rNQ1UNIScBARpyR

by ð

i haven't try it with a global group. This is what i use for a localgroup.

"net localgroup groupname(test group) username(newID)"

try changing localgroup to globalgroup.

hope it works.

This discussion is closed to new replies.