Creating Domain Users

It goes without saying that creating users is fundamental to network management. In Windows Server 2008, you can create a user object in Active Directory by using the create() method and specifying a name, without supplying values for any of the attributes. When you do this, the user account will be disabled and many of the attributes are populated with seemingly random values. Your users may not want to log on using some of these values, but this is a good way to create a large number of users; for example, for testing purposes in a lab environment. This also allows you to quickly create the users in a single operation, letting you "fill in the blanks" at a later time when more complete information is available.

When working ...

Get Windows PowerShell™ Scripting Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.