DSADD syntax

  • Thread starter Thread starter BedBaol
  • Start date Start date
B

BedBaol

Hello.
Sameone knows how it is correct syntax for DSADD command?
I want to run this command from WINXP Pro SP1 in a W2K domain.
But, syntax from help-on-line

DSADD user MyUserName -FN MyFirstName ...

dont works!
In some examples I read syntax like

DSADD user "DN=MyUserName, ...."

but I dont know meant of all prefix DN, ....
Thank'you for every suggestion.
 
BedBaol said:
Hello.
Sameone knows how it is correct syntax for DSADD command?
I want to run this command from WINXP Pro SP1 in a W2K domain.
But, syntax from help-on-line

DSADD user MyUserName -FN MyFirstName ...

dont works!
In some examples I read syntax like

DSADD user "DN=MyUserName, ...."

but I dont know meant of all prefix DN, ....
Thank'you for every suggestion.

A couple of thoughts:

1) You aren't likely to be adding "MyUserName" for yourself
so you presumable want to use -u AdminName (to supply YOUR
admin user name) or you are trying to add a user like "Sally Smith"
and THAT would be the username parameter but you need to put
it in DISTINGUISHED NAME format (see next).

2) A distinguished name does NOT use "DN=etc" but rather "CN="
for COMMON NAME to define Users/Computers/Groups (Security
Principals) and other ordinary objects.

The abbreviation for an OU is (obviously) OU=, and for DC= is
the abbreviation for "Domain Component" which is used for each
DNS domain name label (or component).

Example:
dsadd user "CN=Sally Smith,CN=Users,DC=microsoft,DC=com"

Have you typed: dsadd user /?

Many people do the simple help (dsadd /?) but don't realize they
can get more specific help by adding the subcommand and requesting
help on that.



--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]
 
Back
Top