- SQL Server Version Numbering
- Windows7 drops PPTP Connections
- Exposing VNC access to your VM in vCenter
- Cisco ASA Hanging at ROMMON at Boot
- Microsoft SQL Server Verion Info
- OSX VPN Client DES Support
- Changing Windows RDP port
- Distinguished Name (DN) of Logged in User on Windows7
- ESXi Multiplathing Options
- DELL PowerConnect - What does "iscsi enable" do?
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
-