Reputation: 2464
Information
Let's say that I have a server on the domain "domain.com". In the active directory, I have the OU Finance, in that OU, I have the OU Users.
If I want to create a user in this folder, using command line it would be:
dsadd user CN=user01,OU=Users,OU=Finance,DC=domain,DC=com
This is excluding the parameters of course.
Question
Every server has a "Users" folder, which contains the standard-users such as the Administrator.
How would I create a user in that standard folder, using the commandline? And how would I add that user to a group that is inside of the "Built-in" folder?
Let's say that the username would be user01 and the group "Administrators"
Upvotes: 0
Views: 682
Reputation: 40968
The trick is that the built-in Users folder isn't an OU, it's a "Container" (i.e. the objectClass
is "container" rather than "organizationalUnit"). So the distinguished name of that container is prefixed by CN=
rather than OU=
.
So try this:
dsadd user CN=user01,CN=Users,DC=domain,DC=com
Upvotes: 1