O'Reilly logo

Windows PowerShell™ Scripting Guide by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required