Objects in Windows Server 2003
Objects in Windows Server 2003
SUMMARY
This article describes how to use the Directory Service command-line tools to
perform administrative tasks for Active Directory in Windows Server 2003. The following tasks are broken down into
task groups.
NOTE: To view the complete syntax for this command, and to obtain more
information about entering more user account information, at a command prompt, type dsadd user /?.
NOTE: If a password is not assigned, the first time the user tries to log on (by
using a blank password), the following logon message is displayed: You are required to change your password at
first logon After the user has changed the password, the logon process continues.
You must reset the services that are authenticated with a user account if the password for the service's user account
is changed.
NOTE: To view the complete syntax for this command, and to obtain more information about entering more user
account information, at a command prompt, type dsmod user /?.
support.microsoft.com/kb/322684 1/7
10/6/2009 How To Use the Directory Service Co…
{yes|no}specifies whether the user account is disabled for log on (yes) or not (no).
NOTE: As a security measure, instead of deleting that user's account, you can
disable user accounts to prevent a particular user from logging on. If you disable user accounts that have common
group memberships, you can use disabled user accounts as account templates to simplify user account creation.
After you delete a user account, all of the permissions and memberships that are
associated with that user account are permanently deleted. Because the security identifier (SID) for each account is
unique, if you create a new user account that has the same name as a previously deleted user account, the new
account does not automatically assume the permissions and memberships of the previously deleted account. To
duplicate a deleted user account, you must manually re-create all permissions and memberships.
NOTE: To view the complete syntax for this command, and to obtain more information about entering more user
account information, at a command prompt, type dsrm /?.
If the domain in which you are creating the group is set to the domain functional
level of Windows 2000 mixed, you can select only security groups with domain local scopes or global scopes.
To view the complete syntax for this command, and to obtain more information about entering more group
information, at a command prompt, type dsadd group /?.
In addition to users and computers, a group can contain contacts and other
groups.
To view the complete syntax for this command, and to obtain more information about entering more user account
and group information, at a command prompt, type dsmod group /?.
support.microsoft.com/kb/322684 2/7
10/6/2009 How To Use the Directory Service Co…
Converting a Group to Another Group Type
To view the complete syntax for this command, at a command prompt, type dsmod group /?.
Deleting a Group
By default, local groups that are provided automatically in domain controllers that are running Windows Server
2003, such as Administrators and Account Operators, are located in the Builtin folder. By default, common global
groups, such as Domain Admins and Domain Users, are located in the Users folder. You can add or move new
groups to any folder. Microsoft recommends that you keep groups in an organizational unit folder.
To view the complete syntax for this command, at a command prompt, type dsrm /?.
To view the complete syntax for this command, at a command prompt, type
dsget user /?.
support.microsoft.com/kb/322684 3/7
10/6/2009 How To Use the Directory Service Co…
Creating a New Computer Account
To view the complete syntax for this command, at a command prompt, type
dsadd computer /?.
To modify the properties of a computer account, use the dsmod computer command.
When you add a computer to a group, you can assign permissions to all of the
computer accounts in that group, and then filter Group Policy settings on all accounts in that group.
To view the complete syntax for this command, at a command prompt, type dsmod group /?.
NOTE: When you reset a computer account, you break the computer's connection
to the domain. You must rejoin computer account to the domain computer account after you reset it.
To view the complete syntax for this command, at a command prompt, type dsmod computer /?.
When you disable a computer account, you break the computer's connection with
the domain and the computer cannot authenticate to the domain.
To view the complete syntax for this command, at a command prompt, type dsmod computer /?.
support.microsoft.com/kb/322684 4/7
10/6/2009 How To Use the Directory Service Co…
To view the complete syntax for this command, at a command prompt, type
dsadd ou /?.
NOTE: To modify the properties of an organizational unit, use the dsmod ou command.
NOTE: If you delete an organizational unit, all of the objects that it contains are deleted.
To view the complete syntax for this command, at a command prompt, type
dsquery user /?.
Finding a Contact
Finding a Group
By default, local groups that are provided automatically in domain controllers that
are running Windows Server 2003, such as Administrators and Account Operators, are located in the Builtin folder.
By default, common global groups, such as Domain Admins and Domain Users, are located in the Users folder. You
support.microsoft.com/kb/322684 5/7
10/6/2009 How To Use the Directory Service Co…
can add or move new groups to any folder. Microsoft recommends that you keep groups in an organizational unit
folder.
To view the complete syntax for this command, at a command prompt, type
dsquery computer /?.
To view the complete syntax for this command, at a command prompt, type
dsquery ou /?.
REFERENC ES
APPLIES TO
support.microsoft.com/kb/322684 6/7
10/6/2009 How To Use the Directory Service Co…
Microsoft Windows Small Business Server 2003 Standard Edition
support.microsoft.com/kb/322684 7/7