0% found this document useful (0 votes)
84 views1 page

Dsadd

This document provides instructions for using the dsadd and dsmod commands to manage users and groups within Active Directory. It demonstrates how to create a user and add them to a group, modify an existing user's password, and create a new user with a password assigned simultaneously.

Uploaded by

umesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views1 page

Dsadd

This document provides instructions for using the dsadd and dsmod commands to manage users and groups within Active Directory. It demonstrates how to create a user and add them to a group, modify an existing user's password, and create a new user with a password assigned simultaneously.

Uploaded by

umesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 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

You might also like