- Nagios - Switch Interface Traffic
- How To - Linux Server Performance
- Notes - Building New ESXi Host for iSCSI with Jumbo Frames
- Microsoft Office Version Numbers (XP, 2003, 2007, 2010)
- ESXi Custom Welcome Screen Text
- PHP - Read Data from a CSV file
- PHP - Input Variables from URL
- Fix - WMI Error EventID 10
- Fix - EventID 4007 DNS Server Error
- FIX - CHECK_ESX3.PL Script
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 to post comments
-
