Get the App
SLTechnology News&Howtos  ›  Development  › 

How to add users with dsadd

Shulou Source: shulou.com Published: 2022-06-03 07:53:35 11月15日 Update

This article mainly shows you "how to use dsadd to add users", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "how to use dsadd to add users" this article.

Description: this tool command adds some specific object types to the directory. Dsadd command:

Dsadd computer-add the computer to the directory.

Dsadd contact-add contacts to the directory.

Dsadd group-add the group to the directory.

Dsadd ou-add organizational units to the directory.

Dsadd user-add the user to the directory.

Dsadd quota-adds a quota policy to the directory partition.

To find help with a specific command, type "dsadd /?" here

Is the type of supported object shown above.

For example, dsadd ou /?.

Remarks:

Commas in distinguished names that are not used as delimiters 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 tool help:

Dsadd /?-add help for objects.

Dsget /?-displays the object's help.

Dsmod /?-help to modify the object.

Dsmove /?-help with moving objects.

Dsquery /?-find help that matches the search criteria.

Dsrm /?-help to delete an object.

The code is as follows:

For / f "tokens=1,2,3,4,5,6 delims=," an in (information.csv) do dsadd user "cn=%d,ou=HR,dc=contoso,dc=com"-samid% d-upn% f@contoso.com-ln% b-fn% c-pwd% e-disabled yes

The above is all the content of the article "how to add users with dsadd". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Help objects directories users commands content slashes articles names tools types escape learning code delimiters units comments characters easy to understand more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Linux vpn Redmi