How to use the dsmod command to bulk modify the properties of an ad user

Source: Internet
Author: User

Use the dsmod command to modify the properties of the ad user account, such as user description, office address, telephone number, department, company name, etc.

To run this command on a server that has the Active Directory installed, I created a new "Mod.bat" batch file on the DC and edited it with Notepad as follows:

dsmod user "cn=abc,ou=users,ou=yourcompany,dc=yourdomain,dc=com"-desc "YourCompany IT System Engineer"-office "BJ"- Mobile "13800000000"

The dsmod user command specifies that the user's properties should be modified, and the full DN (distinguish Name) of the user's Active Directory account must be given, and the corresponding account attributes will be specified for each subsequent parameter to complete the modification.

At present, it appears that the new mailbox account and modify the account's properties are in two steps, and is a separate 2 servers running different scripts to achieve, if it can be done in one step of course the best.

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/

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.