|
Guy recommends :
Find out which of your VMs are a waste of space and which VMs need more resources. |
DSAdd a New Way to Create Groups in Windows Server 2003/8Introduction to DSAdd GroupsDSAdd can create the full range of Windows Server 2003/8 Active Directory objects, on this page we will focus on manipulating groups.
♦ Example 1: Using DSAdd to Create an Organizational UnitPreparation: Logon to your domain controller. Examine the script below. Edit ou= or dc= to reflect YOUR domain. Run, CMD then copy your script and paste into the command window. Alternatively type it starting with dsadd ou ......... dsadd ou "ou=guyds, dc=cp, dc=com" Note 1: dsadd ou. This command tells Active Directory which object to create, in this case an OU (not a user). Note 2: You only really need speech marks if there is a space in any of your names. So ou=guyds, dc=cp, dc=com would work fine, but ou=GUY Space DS, dc=cp, dc=com fails because of the spaces in the GUY Space DS, name. In this second example you must type: "ou=GUY Space DS, dc=cp, dc=com" Example 2: Creating Groups with DSAdd (Assumes you have completed Example 1)Creating groups with DSAdd requires more information, and that means more switches. When you create a group, ask yourself, "Will the group be Global, or Domain Local? Is the group for distribution or security". -scope g Global group -scope L Domain Local group (Could also be -scope l. Lower case L) -secgrp yes Security group (not distribution) dsadd group "cn=L Epson, ou=guyds, dc=cp, dc=com" -secgrp yes -scope L Note 1: cn=L Epson This is the name of the group. Best practices suggests that we begin the group name with L for Local. Note 2: Try dsadd group /? to double check the syntax for your -switches.
Guy Recommends: SolarWinds' Free Bulk Import Tool
|
||||
Custom Search
|
Guy Recommends: WMI Monitor and It's Free!
|
|
Author: Guy Thomas Copyright © 1999-2012 Computer Performance LTD All rights reserved. Please report a broken link, or an error to: | |