Planet
12-12-2008, 12:35 AM
This article is based on PowerShell in Practice, to be published May 2009. It is being reproduced here by permission from Manning Publications. Manning early access books and ebooks are sold exclusively through Manning. Visit the book's page for more information.
Working with groups is much more efficient than working with individual accounts. You need to give a set of users access to a resource, put them in a group, and assign the permissions to the group. Before we can do that we need to create the group.
We will be using the System.DirectoryServices.AccountManagement .NET classes in these examples. You must have .NET version 3.5 loaded to use this namespace. If it is not possible to use this version of .NET then the scripts shown under the variation headings can be used. Click here to read the rest of this article right here on EITPlanet.com (http://www.enterpriseitplanet.com/networking/features/article.php/3790641). And when your done, come right back here to discuss it.
Working with groups is much more efficient than working with individual accounts. You need to give a set of users access to a resource, put them in a group, and assign the permissions to the group. Before we can do that we need to create the group.
We will be using the System.DirectoryServices.AccountManagement .NET classes in these examples. You must have .NET version 3.5 loaded to use this namespace. If it is not possible to use this version of .NET then the scripts shown under the variation headings can be used. Click here to read the rest of this article right here on EITPlanet.com (http://www.enterpriseitplanet.com/networking/features/article.php/3790641). And when your done, come right back here to discuss it.