Вы находитесь на странице: 1из 1

Creating a User - DSadd user....

dsadd user "cn=guyt, ou=guyds, dc=cp, dc=com"

DSAdd to Control Group Members

Perhaps one of the most useful DSAdd features is the ability to add a member to a
groups as you create the group. Assuming you have already created a user called
Elizabeth you would append this to Example 2.

-members "cn=Elizabeth, ou=guyds, dc=cp, dc=com"

If there is a snag, you need to remember to add the members when you create the
group otherwise dsadd will not work. However, you could try dsmod to modify or add
members to an existing group.

dsadd group "cn=L Oki, ou=guyds, dc=cp, dc=com" -secgrp yes -scope L -members
"cn=elizabeth, ou=guyds, dc=cp, dc=com"

Modify Password

Logon to your domain controller. Check which users you have, if necessary create
an ou called guyds and user called guyt. See DSadd

Examine the script below. Decide how cn= or ou= or dc= need editing.

Run, CMD then copy your script and paste into the command window. Alternatively
type it starting with dsmod user .........

dsmod user "cn=guyt, ou=guyds, dc=cp, dc=com" -pwd a1yC24kg

Create user WITH password

Note 1: We could have created the password at the same time we created the user.
For ease of learning I introduce one variable at a time. However, here is the
complete command to add a user with a password.

dsadd user "cn=pault, ou=guyds, dc=cp, dc=com" -pwd a1yC24k

Вам также может понравиться