271_70-292_01.qxd 8/21/03 12:40 PM Page 2222 Chapter 1 • Managing Users, Computers, and Groups
Members can also be added to an existing group from the command-line using the
dsmod command.The syntax required to add a member to a group is as follows:
dsmod group GroupDN -addmbr MemberDNThe function of the switches is self-explanatory, as they represent the distinguished
name of the group to add the member to and the distinguished name of the member to be
added. Appendix A contains a complete listing of the dsmod command and its switches.
Figure 1.12 demonstrates using the dsmod command twice to add two user accounts to the
West Region Sales group using the following commands:
dsmod group "CN=West Region Sales,DC=corp,DC=mcsaworld,DC=com" -addmbr "CN=RickSmith,CN=Users,DC=corp,DC=mcsaworld,DC=com"dsmod group "CN=West Region Sales,DC=corp,DC=mcsaworld,DC=com" -addmbr "CN=JeffFigure 1.12 Adding Users to a Group from the Command-Line
A quick check of the West Sales Region Group Members tab, seen in Figure 1.13, indi-
cates that the user accounts were successfully added to the group.
Figure 1.13 Verifying the Results of the dsmod Command
https://traloihay.net
Bạn đang xem 271_ - MCSA MCSE EXAM 70 292 STUDY GUIDE PHẦN 1 PPTX