|
Guy recommends :
Find out which of your VMs are a waste of space and which VMs need more resources.
|
WSH - Create GroupsIntroduction - Creating Global Groups with WSHThe purpose of this script is to create a new Global group. My example uses an OU called BulkImport, a domain called CP.com and a Global group called Managers. Do change these variables to names in your Active Directory. WSH Topics♦ Create the Global GroupTo prevent the Global group being created in the Users container we specify
the OU. This is taken care of by this line: Note: The syntax is OU=BulkImport (Not Note: The script does not create the OU BulkImport, either make it manually or change the script to an OU that does exist. (However there instructions in the WSH Create User if you want to create an OU.) ° Set the Group ObjectNote: You must change dc=CP to dc=xxxxxxx where xxxxxxx is your domain name. Also check whether or not your domain has a com extension. If it does not, and is just a plain domain, remove the element dc=com Instructions
'Script to Create a Global Group in an OU called BulkImport Set objOU = GetObject("LDAP://OU=BulkImport, dc=CP, dc=com") objGroup.Put "sAMAccountName", "Managers" objGroup.SetInfo WScript.Echo "Congratulations, Global Group Managers created & Chr(13) Remember to Press F5"
Guy
Recommends: Permissions Analyzer - Free Active Directory Tool
|
||||
Custom Search
|
Guy Recommends: WMI Monitor and It's Free!
|
|
Home Copyright © 1999-2012 Computer Performance LTD All rights reserved Please report a broken link, or an error. | |