How to Create User Using Batch File

1. Type user name, full name, password, comment, home drive, home path, profile and script (press ctrl - to see hidden file) in the MS Excel. Save your file as usert.bat (any name) in folder, say createaccount. Here I will show how to create 3 users using batch file.

User NameFull NamepasswordCommentHome DriveHome PathProfileScript
AFZAMNORAFZAM BT JUSOHguru2011Practical's TeacherU:\\DEA2191SI001\AFZAM
loging.bat
IDAHHAMIDAH MAT HASSANguru2011Practical's TeacherU:\\DEA2191SI001\IDAH
loging.bat
NOORANISNOORANIS BT MOHAMAD HALMIguru2011Practical's TeacherU:\\DEA2191SI001\NOORANIS
loging.bat

Note : DEA2191SI001 - server name (application server), Profile - leaving blank (speed up at login's time)

2. Copy adduser.exe form this link (adduser_x86.exe don't work, please find adduser.exe) and save same folder, folder createaccount.
3. Click start button, type cmd in the search program and file's box.
4. Command window appear. Type directory and folder where you keep adduser program and usert.csv file.


5. Type addusers \\DEA2191SI001 /c userst.csv.
Note: \\DEA2191SI001 - SERVER and userst.csv - contain all user detail.

6. Here the result.

Comments

Popular posts from this blog

Working with Columns on the Joomla Frontpage

Create your own Nameserver using TinyDns on Pfsense

Block Facebook on Pfsense using WPAD Autodiscover feature