Commands for bulk import of domain users in AD

Source: Internet
Author: User

Most projects when data is initialized, one of the most frustrating thing is to build a user into the ad domain, and below is a quick way to create a domain user:

The first step: organize the user data that needs to be initialized into an Excel table and save the Excel file. CSV format. (Note: The columns in the Excel table are: Last name, first name, name, login name, password)

Part Two: Run cmd as an administrator and enter the following command:

"For/f" tokens=1,2,3,4,5 delims=, "%a in (users. csv) do dsadd user" cn=%c,ou=test,dc=crmtest, dc=com "-samid%d-upn%[email Protected]-ln%A-FN%b-pwd%e-disabled No "(Description:" User. csv "in parentheses indicates user files that need to be imported)

Commands for bulk import of domain users in AD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.