No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

A method to create or delete a batch of domain users in the AD

Publication Date:  2012-11-14 Views:  28 Downloads:  0
Issue Description
After have installed the AD, we will meet a thorny issue, which is creating the domain user. If there are numerous of domain users, the workload is not easy….. Moreover, the operator who takes this work may be too tired to make good effect, he/she may easily make error, there is the same problem while delete the domain users. This low-level work isn’t feasible, we can add or delete a batch of users via a command. Then, we can improve our effectiveness and reduce the probability of making error, how pleasure it is!

Alarm Information
None
Handling Process
Instruction of creating a batch of domain users:
1. The example name of the domain name is “cloud.lnctc.com”, make sure the OU has been created completely in the AD:
For example: we need to create users in the OU whose name is “OA Group”, make sure there is a sub-OU whose name is “account” in this OU.
2. Edit the “AddUsers.txt” file:
Each row corresponds a user, there are domain user’s account, password and the authorized OU from left to right in the row, they are separated by the West comma (,), and different users are displayed in different rows.
For example:
yohon.chen1,Galax8800,OAGroup
  yohon.chen2,Galax8800,OAGroup
  yohon.chen3,Galax8800,OAGroup
  yohon.chen4,Galax8800,yytGroup
  yohon.chen5,Galax8800,yytGroup
  yohon.chen6,Galax8800,yytGroup
  yohon.chen7,Galax8800,yytGroup
Save the edited file.
3. Double click the “AddUsers.Vbs” run script, and we add users successfully.

Instruction of deleting a batch of domain users:
1. The example name of the domain name is “cloud.lnctc.com”, confirm the OU where the deleting users are in before deleting:
For example: we need to delete the users in “OA Group”, make sure these users are contained in the sub-OU whose name is “account” in this “OA Group”.
2. Edit the “DelUsers.txt” file:
Each row corresponds a user, there are domain user’s account and the user OU from left to right in the row, they are separated by the West comma (,), and different users are displayed in different rows.
For example:
yohon.chen1,OAGroup
  yohon.chen2,OAGroup
  yohon.chen3,OAGroup
  yohon.chen4,yytGroup
  yohon.chen5,yytGroup
  yohon.chen6,yytGroup
  yohon.chen7,yytGroup
Save this edited file.
3. Double-click the “DelUsers.Vbs” run script, and then we delete the users successfully.
Root Cause
None
Suggestions
Please revise the corresponding content of the script according to the actual domain name for your operation.

END