User Management

This section contains code examples that can be used to add and manage users on a domain.

When you set up a user object, you might want to set several user properties on the object at the same time, to configure that user object for a particular environment. For example, there are several flags in the userAccountControl property that specify the user password behavior, account-lockout, account-enable and account-disable, the type of account that the user has, and other options. For more information about this property, see the topic userAccountControl in the MSDN Library at https://go.microsoft.com/fwlink/?LinkID=27252. One or more of these flags can be set on a new user object before the new user object is committed to the database.

Several code examples in this section show how to set flags for the userAccountControl property. There are also some samples for setting the properties that are displayed in the System Administrator property pages for each user.

This section includes the following topics:

See Also

Reference

System.DirectoryServices

Concepts

System Administration Tasks

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation. All rights reserved.