MCSE Create Users Dos

CRETE USER USING DOS

NOTES:
you can take your "" out if you have no spaces

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:Documents and SettingsAdministrator>dsadd
Description: This tool's commands add specific types of objects to the
directory. The dsadd commands:

dsadd computer – adds a computer to the directory.
dsadd contact – adds a contact to the directory.
dsadd group – adds a group to the directory.
dsadd ou – adds an organizational unit to the directory.
dsadd user – adds a user to the directory.
dsadd quota – adds a quota specification to a directory partition.

For help on a specific command, type "dsadd <ObjectType> /?" where
<ObjectType> is one of the supported object types shown above.
For example, dsadd ou /?.
Remarks:
Commas that are not used as separators in distinguished names must be
escaped with the backslash ("") character
(for example, "CN=Company, Inc.,CN=Users,DC=microsoft,DC=com").
Backslashes used in distinguished names must be escaped with a backslash
(for example,
"CN=Sales Latin America,OU=Distribution Lists,DC=microsoft,DC=com").
Directory Service command-line tools help:
dsadd /? – help for adding objects.
dsget /? – help for displaying objects.
dsmod /? – help for modifying objects.
dsmove /? – help for moving objects.
dsquery /? – help for finding objects matching search criteria.
dsrm /? – help for deleting objects.

C:Documents and SettingsAdministrator>dsadd user "cn=simon,ou=sales,dc=shahid,
dc=local"
dsadd succeeded:cn=simon,ou=sales,dc=shahid,dc=local

C:Documents and SettingsAdministrator>dsadd user "cn=paul,ou=sales,dc=shahid,d
c=local" -pwd bcc
dsadd succeeded:cn=paul,ou=sales,dc=shahid,dc=local

C:Documents and SettingsAdministrator>dsadd ou "ou=test,dc=shahid,dc=local"
dsadd succeeded:ou=test,dc=shahid,dc=local

C:Documents and SettingsAdministrator>dsadd user "cn=paul,ou=test,dc=shahid,dc
=local" -pwd bcc
dsadd failed:cn=paul,ou=test,dc=shahid,dc=local:The specified user already exist
s.
type dsadd /? for help.
C:Documents and SettingsAdministrator>dsadd user "cn=paul1,ou=test,dc=shahid,d
c=local" -pwd bcc
dsadd succeeded:cn=paul1,ou=test,dc=shahid,dc=local

C:Documents and SettingsAdministrator>