Modifying Computer Accounts

Microsoft® Windows® 2000 Scripting Guide

Computer account attributes often need to be modified. For example, because many computer accounts are created before the computers are actually assigned to users, attributes such as Description, Department, and Location cannot be configured at the time the account is created. In addition, the ownership of a computer can be transferred to a new user or department, or a computer might be physically moved to a new location. In such circumstances, the computer account attributes need to be modified.

You can use the ADSI Put and SetInfo methods to modify these attributes at any time. In addition to modifying account attributes, you can also create scripts that:

  • Rename computer accounts.

  • Move computer accounts to new Active Directory containers.

  • Reset computer account passwords.