- Windows Stuff
- Change Window's "register" User/Org
- Fix - GotoMeeting Could not Connect
- How To - Moving Google AppSync Outlook Mailbox Data
- How To - Uninstall Software Update Manager
- Perl Script - Active Directory Password Expiration
- RealTek HD Audio and Windows7
- Script - Restart Service on ALL Hosts
- Tip - DSADD and DSMOD Commands
- Windows 2008 DHCP Server in Workgroup
Tip - DSADD and DSMOD Commands
Problem
Adding a large group of new Active Directory (AD) users and add them to a group.
Solution
Using DSADD and DSMOD command line options in a batch script.
Knowing the command syntax and having a Excel Spreadsheet of the User information, I created a bulk list of commands I executed by "batch" script.
Using the following single command line, you may add users to your AD environment.
dsadd user "CN=Firstname Lastname,CN=Users,DC=domain,DC=local" -samid userid -upn "userid@domain.local" -fn "Firstname" -ln "Lastname" -display "Firstname Lastname" -pwd password123 -email "username@domain.com"Using the following single command line, you may add a user to a group.
dsmod group "CN=GroupName,CN=Users,DC=domain,DC=local" -addmbr "CN=Firstname Lastname,CN=Users,DC=domain,DC=local"Note - There additional command line parameters that may be available to meet your needs, so take a look yourself.
- MWalker's blog
- Printer-friendly version
- Login or register to post comments
-

Recent comments
7 weeks 3 days ago
24 weeks 6 days ago
28 weeks 5 hours ago
37 weeks 6 days ago
45 weeks 2 days ago
45 weeks 4 days ago
50 weeks 1 day ago
1 year 1 week ago